- 博客(5)
- 资源 (9)
- 收藏
- 关注
原创 双向链表
#include #include using namespace std; typedef struct student { int data; struct student *pre; struct student *next; }node; node *creat() { int cycle=1,x; node *head,*p,*s; head=(n
2012-10-08 16:52:55 402
原创 strlen()函数的实现
#include #include using namespace std; int str_length(char *abc) { char *p=NULL; p=abc; int count=0; while(*p) { p++; count++; } return count; } main() { char *abc="abcd
2012-10-07 20:45:09 500
原创 两个链表合并为一个链表
#include #include typedef struct Node { int data; struct Node *next; }node; typedef struct Node *linklist; using namespace std; void *creat(linklist *L,int n) { *L=(linklist)malloc(sizeof
2012-10-02 23:42:35 721
原创 朴素字符串匹配算法
#include #include #include #define maxsize 40 #define ok 1 #define error 0 using namespace std; typedef char String[maxsize+1]; int String_assign(String m,char *chars) { int i; if(strle
2012-10-01 18:19:21 462
原创 找到数组中第二大的数值
#include #include using namespace std; int min_num=0; int find_sec_num(int a[],int n) { int max_num; int sec_num; int i; max_num=a[0]; sec_num=min_num; for(i=1;i { if(a[i]>max_n
2012-10-01 00:02:56 955
《C# 线程参考手册》源码
2017-09-20
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人