C++
sbqakqux
这个作者很懒,什么都没留下…
展开
-
error: stray ‘\302’ in program
有时候在拷贝代码的过程中可能会出现下面的问题: CA.cpp:35:2: error: stray ‘\302’ in program CA.cpp:35:2: error: stray ‘\240’ in program CA.cpp:36:1: error: stray ‘\302’ in program CA.cpp:36:1: error: stray ‘\240’ in progr原创 2014-06-10 10:45:48 · 1796 阅读 · 0 评论 -
深拷贝和浅拷贝
vincent@vincent:~/study/driver/copy$ cat CA.cpp #include #include using namespace std; class CA{ public: CA(int b,char* cstr) { a=b; str=new char[b]; strcpy(str,cstr); } CA(const CA& C)原创 2014-06-10 12:00:00 · 468 阅读 · 0 评论