掬水

导航

[置顶] 求教有关C++中子对象析构的问题

摘要: 在VS2010上,代码如下:View Code 1 #include<iostream> 2 #include<string> 3 using namespace std; 4 5 class Person 6 { 7 public: 8 Person(int age ,char* name ); 9 10 void get() const;11 12 ~Person()13 {14 cout<< "Destructor in the fun of Person! "<<endl;15 }16 17 18 private:19 阅读全文

posted @ 2011-07-11 19:30 掬水 阅读(259) 评论(1) 推荐(0) 编辑

2010年12月19日

C语言实现字母接龙的小程序

摘要: 代码 阅读全文

posted @ 2010-12-19 23:29 掬水 阅读(596) 评论(0) 推荐(1) 编辑