摘要: #include using namespace std;class CFatherSum //父类Sum{public: int m_iVar; //公用数据成员 void money(){coutCFatherObam::getPri(); ... 阅读全文
posted @ 2015-04-28 19:28 何似王 阅读(415) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std;class CFatherSum //父类Sum{public: CFatherSum(){cout<<"1,Default Constructing CFatherSum"<<endl;}//默认构造 CFath... 阅读全文
posted @ 2015-04-28 16:58 何似王 阅读(323) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std;class CFatherSum //父类Sum{public: CFatherSum(int iRec){cout<<"1,Constructing CFatherSum"<<iRec<<endl;}//构造函数成员初... 阅读全文
posted @ 2015-04-28 16:13 何似王 阅读(213) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std;class CFather{public: void display() const { coutdisplay();}void showson(CSon *ptr){ ptr->display();}int main(){ ... 阅读全文
posted @ 2015-04-28 15:04 何似王 阅读(729) 评论(0) 推荐(0) 编辑
摘要: 关于字符集不一的历史原因,可以参考:UNICODE与ANSI的区别以下是网上转载的资料。我将辅以自己的实例,说明并总结关系。一.CString, int, string, char*之间的转换(无法区分这几个类型的把这节跳过,最后回来复习)string 转 CString CString.Forma... 阅读全文
posted @ 2015-04-28 11:03 何似王 阅读(328) 评论(0) 推荐(0) 编辑
摘要: #include #include using namespace std;int main(){ wchar_t * first= L"h"; wcout#include using namespace std;int main(){ wchar_t * first= L"h";... 阅读全文
posted @ 2015-04-28 10:29 何似王 阅读(6158) 评论(0) 推荐(0) 编辑
摘要: 一眨眼,十年了,十年前天天在电脑前码php。十年后,也还很非常喜欢游戏,跟少爷说起了兴趣,于是又重拾了程序,唉,尚能饭否? 阅读全文
posted @ 2015-04-28 10:17 何似王 阅读(99) 评论(0) 推荐(0) 编辑