摘要: #include <stdio.h>#include <stdlib.h>typedef struct Node { int data; struct Node *next;} Node;void getInfo(Node * node);int printNodes(Node *node);void saveToFile(Node * node, char * filename);void readFromFile(char * filename, int n);Node nodes[20];int main() { Node *first = (Node *) ma 阅读全文
posted @ 2013-03-24 22:13 cart55free99 阅读(438) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<string.h>#include <malloc.h>void q_sortB(char str[20][20], int n);void qs(char str[20][20],int n);void main() { int i, n; char str[20][20] = { { "Adam" }, { "Bob" }, { "Dimen" }, { "Colin" }, { "Correal" }, 阅读全文
posted @ 2013-03-24 21:29 cart55free99 阅读(220) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>#include <string.h>#define stuSize 1 // define的时候 没有数据类型 也不用写; 符号!!!void cpyFile(FILE *scource, FILE *dest);void writeFile(char *str); //将控制台的文字写入文件void getInfo();void saveToDisk(char path[32]);void checkFile(char path[32]);void main() { //将输入的信息写入文件 writeFile("D:/ 阅读全文
posted @ 2013-03-24 16:06 cart55free99 阅读(171) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<string.h>#include <malloc.h>void f1(char s[], int n);void f2(char *s);void f3(char s[20][20]); //这里的大小要和实参中数组大小匹配 否则可能不会得到理想值void f4(char **str);void f5(char * str[]);void main() { int i, n; char str[20][20] = { { "Adam" }, { "Bob" }, { 阅读全文
posted @ 2013-03-24 13:19 cart55free99 阅读(169) 评论(0) 推荐(0) 编辑