摘要:
1 #include 2 #include 3 4 typedef struct Node{ 5 int data; 6 struct Node *next; 7 }Link; 8 9 void add(Link * Head); 10 void print(Link * Head); 11 Link* reverse(Link *... 阅读全文
摘要:
阅读C++ Primer 第511页时有一个文本查询程序,当时感觉过于复杂,用C语言实现实现基本功能要简单一些在一个文件中查找指定单词所在的行,简单实现了,没有进行异常处理;#include#includeint main(){ int maxword = 1024; int i = 0; char... 阅读全文