摘要:
1 #include<iostream> 2 #include<string> 3 using namespace std; 4 class Test{ 5 private: 6 int*m_pointer; 7 public: 8 Test(){ 9 m_pointer = NULL; 10 } 阅读全文
摘要:
函数调用 1 #include<string> 2 using namespace std; 3 //重载函数调用操作符() 4 //函数对象取代函数指针 5 class Fib{ 6 private: 7 int a0; 8 int a1; 9 public: 10 Fib():a0(0),a1( 阅读全文
摘要:
1 #ifndef _INTARRAY_H_ 2 #define _INTARRAY_H_ 3 class IntArray{ 4 private: 5 int m_length; 6 int* m_pointer; 7 IntArray(int len); 8 IntArray(const Int 阅读全文