摘要: #define ElementType intstruct Node;typedef struct Node *PtrToNode; //不懂书上分这么多步干嘛,后面自己写方便点typedef PtrToNode List;typedef PtrToNode Position;Lis... 阅读全文
posted @ 2015-09-23 21:54 dylqt 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 一、参数传递1、形参为引用类型时,将绑定到相应的实参上,否则为实参的拷贝;在C++中建议用引用类型代替指针2、const 形参:对于顶层的const,在函数形参中无效,也不能构成重载函数形参中尽量使用常量引用,对于普通引用会有误导,主要是非常量引用会导致函数不能接受常量的类型3、数组形参:传递给函数... 阅读全文
posted @ 2015-09-23 14:59 dylqt 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 一、题目Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doesn't... 阅读全文
posted @ 2015-09-23 09:04 dylqt 阅读(130) 评论(0) 推荐(0) 编辑