摘要:
1.引用和指针的区别?参考:http://blog.csdn.net/shencaifeixia1/article/details/79072182.typedef和宏定义的区别?参考:http://www.kuqin.com/language/20090322/41866.html3.抽象类和接口的区别?参考自:http://dev.yesky.com/436/7581936.shtml4.new和malloc的区别?参考自:http://www.cppblog.com/Lee/archive/2009/03/09/75990.htmlhttp://www.builder.com.cn/20 阅读全文
摘要:
代码1:#include #include using namespace std; class node{
public: node(); ~node();
private: int num; node* next;
}; int main()
{ //runtiem error //node* p1 = new node; //runtime error //node* p2 = new node(); //runtiem error //node n1; node n2(); return 0;
}解决上面的问题很容易,只要把构造函数和析构函数实现了就... 阅读全文