发布时间:2013-01-08 09:50:23
文件打开关闭函数:fopen()和fclose() <FILE *fopen(char *filename, char *mode)| int fclose(FILE *fp)>字符读写函数 :fgetc()和fputc()<int fgetc(FILE *fp)|int fputc(int ch, file *fp)> 字符串读写函数:fgets()和fputs()<char *fgets(char *str, int num, FILE *fp)| int fputs(char *str, file *fp)> 数据块读写函数:fread()和fwr......【阅读全文】
发布时间:2013-01-06 22:43:39
点击(此处)折叠或打开 /*带头结点的单向链表操作*/ /*核心:pre=head(pre为前驱结点)*/ /*为方便,结构体只定义一个数据*/ #include"stdio.h" #include"stdlib.h" typedef struct Student { int num; struct Student *next; }Stu; //建立链表 Stu *Creat() { Stu *p......【阅读全文】