2012年7月26日

摘要: 设链表节点为 [cpp]view plaincopy typedefstructtagListNode{ intdata; structtagListNode*next; }ListNode,*List; 要求将一带链表头List head的单向链表逆序。 分析: 1). 若链表... 阅读全文
posted @ 2012-07-26 05:06 _Smileヾ 阅读(385) 评论(0) 推荐(0) 编辑
 
摘要: C++简单读写文本文件、统计文件的行数、读取文件数据到数组 fstream提供了三个类,用来实现c++对文件的操作。(文件的创建、读、写)。ifstream--从已有的文件读 ofstream--向文件写内容 fstream-打开文件供读写 文件打开模式: ios::in读ios::out写ios... 阅读全文
posted @ 2012-07-26 00:56 _Smileヾ 阅读(54875) 评论(1) 推荐(3) 编辑