摘要:
1: class CStr 2: { 3: private: 4: char *pData; 5: int nLength; 6: public: 7: char *get(void); 8: int getlength(void); 9: void cpy(char *s); 10: void cat(char *s); 11: };一开始我声明一个字符串操作类如上cpy这个函数的声明如下 1: void CStr::cpy( char *s ) 2: { 3: int n... 阅读全文