摘要: OK,昨天没写啥,浪费一天,今天赶紧补上,看到一个博客里写着:如果能够完全无误的写出string的四个函数:构造,析构,拷贝构造。赋值函数,那么就掌握了C++基础的60%!60!于是今天果断去练习了下,结果惨不忍睹,唉,看来我20%都没到,还是要加油了。首先上代码:#include<iostream>using namespace std;class String{ public: String(const char *str); ~String(); String( const String &other); String op(String &one,Strin 阅读全文
posted @ 2012-02-15 23:23 RINA 阅读(1756) 评论(0) 推荐(0) 编辑