long time no do this

it has been a long time since i used c++ programme in the last year of undergraduate. today, i try to use it to implement data structure and then be messed by a bounch of problems.

i arrange my thinking and hope to write some recommendation for my C++ learning. 

1. define the struct in a header file, but include the "#ifndef……#define……#endif".

2. the use of construct. typedef struct{}node, and then i can use node as a kind of struct

3. if i want to use the function of one a.cpp in another b.cpp, i do not need to write "#include "a.cpp"" in the header of        b.cpp. insteadly, just give a definition about your prefered function and then use it. the detail information about this        is http://blog.csdn.net/hairetz/archive/2009/10/10/4649320.aspx

4. make sure allocate a pointer memory unless you would returned by access denied since you might use some memory     reserved by system.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值