- 博客(4)
- 资源 (1)
- 收藏
- 关注
转载 VC6 各link错误解决
错误1:LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main在project-setting-link里找到project options 去掉里面的/subsystem:console错误2:nafxcwd.lib(thrdcore.obj) : error LNK2001: unresol
2012-07-28 16:22:29 2831
转载 利用this指针实现对象资源的拷贝
#include #include class student{ public: student(char * pName="no name",int ssId=0) { id=ssId; name=new char[strlen(pName)+1]; strcpy(name,pName); cout<<"construct new student "<<p
2012-07-14 15:57:03 2158
转载 编程之前要分析,编写过程才不会漫无目的
这是c++吧的一维吧友保濟丸在回答另一位吧友的提问时给出的答复,让我第一次深刻感觉到,进行软件分析的重要性。初步看了下,这系统的参与者有两个,一个是会员,一个是图书馆管理员。会员只会借书和还书,(盈利机构的话可能还会充值啥的)管理员有其他用列。但是仔细想的话其实这个啥啥管理系统的真正使用者是管理员,会员只是委托管理员借书和还书。会员和管理员的关系应该是代理模式。所以会员
2012-07-08 17:15:27 1274
原创 对运算符号进行重载,进行复数运算
#include //using namespace std;class complex{public: complex(){real=0;image=0;} complex(double r){real=r;image=0;} complex(double r,double i){real=r;image=i;} friend complex operator +(complex
2012-07-08 13:19:34 1668
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人