摘要: #define _CRT_SECURE_NO_WARNINGS #include #include struct csdn { char name[22]; char password[43]; char email[52]; }; int namemax = -1; int passmax = -1; int mailmax = -1; void ini... 阅读全文
posted @ 2016-09-17 18:14 芬乐 阅读(744) 评论(0) 推荐(0)
摘要: #include #include using namespace std; void HeapAdjust(int *a,int i,int size) //调整堆 { int lchild=2*i; //i的左孩子节点序号 int rchild=2*i+1; //i的右孩子节点序号 int max=i; //临... 阅读全文
posted @ 2016-09-17 16:59 芬乐 阅读(154) 评论(0) 推荐(0)
摘要: 转自:http://www.cnblogs.com/syxchina/archive/2010/07/29/2197382.html qsort 功 能: 使用快速排序例程进行排序 用 法: void qsort(void *base, int nelem, int width, int (*fcm 阅读全文
posted @ 2016-09-17 15:10 芬乐 阅读(258) 评论(0) 推荐(0)
摘要: char *fputs(char *s, int n, FILE *fp)int fputs(char *s, FILE *fp)fgets正常时返回读取字符串的首地址,出错或文件尾,返回NULL。fputs正常时返回写入的最后一个字符,出错返回EOF。 阅读全文
posted @ 2016-09-17 13:54 芬乐 阅读(512) 评论(0) 推荐(0)