摘要: 1.重载赋值运算符函数:(具体见代码)//普通做法CMyString& CMyString::operator=(const CMyString& str){ if (this == &str) return *this; delete[] m_Pdata; m_P... 阅读全文
posted @ 2015-08-01 22:41 从此寂静无声 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 注意鲁棒性和算法效率的典型例题:(头文件省略)typedef struct node{ int data; struct node* next;}ListNode;ListNode* FindKthToTail(ListNode* pListHead, unsigned int k);i... 阅读全文
posted @ 2015-08-01 21:43 从此寂静无声 阅读(163) 评论(0) 推荐(0) 编辑