上一页 1 ··· 3 4 5 6 7
摘要: C++Primer后面的高级特性看不下去,重新找了一本数据结构的书来看,加油!!书名叫《数据结构算法与C++语言描述》!基本完成插入,查找,删除,打印,哦,对了,那个operator//using namespace std;templateclass LinearList{ public: Lin... 阅读全文
posted @ 2015-04-12 08:07 ashen~ 阅读(208) 评论(0) 推荐(0) 编辑
摘要: #include#includeusing namespace std;void disparry(int a[2][3]){printf("\n%d,%d,%d",a[0][0],a[0][1],a[0][2]);}int main(void){ int arr[2][3]={{2,3,1... 阅读全文
posted @ 2015-04-11 08:57 ashen~ 阅读(236) 评论(0) 推荐(0) 编辑
摘要: #include#include#includeusing namespace std;int main(){ ofstream outFile("d:\\test.txt",ofstream::out|ofstream::app); if(!outFile){cout""" "<<buff<<en... 阅读全文
posted @ 2015-04-08 16:58 ashen~ 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 仅仅记录贴,按书上的做完了一边,想把private分离出来已经很难了。因为is用到的成员变量都是直接当做public使用的,如果要改的话可以考虑存储输入,让后用构造函数对类进行初始化。#includeusing namespace std;class Sales_data{public: stri... 阅读全文
posted @ 2015-04-06 22:26 ashen~ 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 1.int lookup(string p);2.int lookup(const string p);//同13.int lookup(string *);//传入一个指针,指针指向string类型4.int lookup(string * const p);//传入的是一个string,指针常量... 阅读全文
posted @ 2015-04-06 11:00 ashen~ 阅读(152) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7