摘要: 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... 阅读全文
posted @ 2011-12-17 22:14 sudigua 阅读(390) 评论(0) 推荐(0) 编辑