2014年5月20日

友元函数 C++

摘要: #include#includeusing namespace std;class Text{public: Text():a(1){}private: int a; void display(){ cout<< "hello world"<<endl;} friend vo... 阅读全文

posted @ 2014-05-20 14:46 berkeleysong 阅读(211) 评论(0) 推荐(0)

C++杂分析

摘要: class word{public: word(){cout#includeusing namespace std;class Text{public: static const int a = 1; ///static 数据成员独立与该类存在 ///static int b = ... 阅读全文

posted @ 2014-05-20 14:22 berkeleysong 阅读(142) 评论(0) 推荐(0)

导航