10 2019 档案

摘要:以读或写方式打开一个文件 #include<iostream.h> //.h以C|非C标准引用库文件 #include<fstream.h> #include<stdlib.h> void main() { fstream fst; char *fn,cn[50]; fn=&cn[1]; // ci 阅读全文
posted @ 2019-10-24 21:39 博客_在线 阅读(893) 评论(0) 推荐(0)
摘要:/* a b c d 1 5 5 1 2 5 5+5 2 1 3 5 5+5+5 3 2 1 4 5+5 10+5+5 3 2 1 5 10+5=15 15+10+5 3 2 1 6 10+5+5=20 20+15+10 3 2 7 20+10=30 3 30+20+15 8 20+10+15=45 阅读全文
posted @ 2019-10-17 12:06 博客_在线 阅读(1489) 评论(0) 推荐(0)
摘要:List容器的应用: // 单链队列 队列的链式存储结构 typedef struct QNode{ typedef struct{ QElemType data; QueuePtr front; //队头指针 struct QNode *next; QueuePtr rear; //队尾指针 }Q 阅读全文
posted @ 2019-10-13 13:34 博客_在线 阅读(289) 评论(0) 推荐(0)