2014年9月27日

自建一个String类实现深拷贝<<0925

摘要: ``` #include #include #include using namespace std;//在class里面存在指针的时候,要使用深拷贝,此时注意三法则原则class String{ public: String(); String(const ch... 阅读全文

posted @ 2014-09-27 11:22 __hello world 阅读(173) 评论(0) 推荐(0) 编辑

命名空间 algorithm头文件 reverse迭代器的erase<<0925

摘要: #0925 词频统计程序的一些总结###命令空间1. 将命名空间里面的函数声明和定义分开,头文件里面只需要包含声明就好了,另外写一个.cc文件,书写函数的定义 //fun.h #ifndef TEST_H_ #define TEST_H_ namespace HW { void fun(... 阅读全文

posted @ 2014-09-27 00:12 __hello world 阅读(450) 评论(0) 推荐(0) 编辑

导航