大约有 40,000 项符合查询结果(耗时:0.0314秒) [XML]

https://www.tsingfun.com/it/cpp/713.html 

代码坏味道(总结) - C/C++ - 清泛网 - 专注C/C++及内核技术

...身) 不要过多使用switch,可以考虑用多态代替。 11.Parallel Inheritance Hierarchies(平行继承体系) 为一个类增加子类同时也需要为另一个类增加子类,这时可以将一个类委托给另一个类。 12.Lazy Class(冗赘类) 没有...
https://www.tsingfun.com/it/cp... 

ATL CComPtr和CComQIPtr详解 - C/C++ - 清泛网 - 专注IT技能提升

...方法用来判断两个接口指针释放引用的是同一个对象。 (11) != 和 == 操作符 跟普通的 一样 (12) CComPtr对IDispatch的特化 CComPtr<IDispatch> iptr; 属性调用的辅助函数: GetIDOfName(LPCOLESTR lpsz,DISPID * pdispid) 这个方法,获得属性的...
https://www.tsingfun.com/it/cpp/1237.html 

C++ template中typename和class的区别 - C/C++ - 清泛网 - 专注C/C++及内核技术

...以参考MSDN资料: http://blogs.msdn.com/b/slippman/archive/2004/08/11/212768.aspx C++ template typename class
https://www.tsingfun.com/it/cpp/1415.html 

AfxGetMainWnd函数解惑 - C/C++ - 清泛网 - 专注C/C++及内核技术

...,转载请标明出处:http://blog.csdn.net/clever101/archive/2010/03/11/5372116.aspx AfxGetMainWnd 函数
https://www.tsingfun.com/it/cpp/1423.html 

CMap用法 - C/C++ - 清泛网 - 专注C/C++及内核技术

...r1"); map.SetAt(2, "str2"); map.SetAt(3, "str3"); map.SetAt(1, "str11"); //把str1覆盖了 //查找(方法一:Lookup) CString str; if (map.Lookup(1, str)) { printf("find:%s\n", str); } //查找(方法二:PLookup) CMapInt::CPair* pPair = map.PLookup(1); if ...
https://www.tsingfun.com/it/cpp/1478.html 

xpath路径表达式笔记 - C/C++ - 清泛网 - 专注C/C++及内核技术

...ok[position()<3] :表示选择bookstore的前两个book子元素。 [例11] //title[@lang] :表示选择所有具有lang属性的title节点。 [例12] //title[@lang='eng'] :表示选择所有lang属性的值等于"eng"的title节点。 [例13] /bookstore/book[price] :表示选择boo...
https://www.tsingfun.com/it/cpp/2048.html 

vc第三方界面库BCGControlBar与Xtreme Toolkit对比 - C/C++ - 清泛网 - 专注C/C++及内核技术

...样支持最新的VS2013和Windows 8.1。它最大的特色就是集成了11个高度优化的界面组件:Command Bars, Controls, Chart Pro, Calendar, Docking Pane, Property Grid, Report Control, Shortcut Bar, Syntax Edit, Skin Framework 和 Task Panel。 安装过程 BCGControlBar的安装过...
https://www.tsingfun.com/it/cpp/2136.html 

C++ 通过主机名/域名获取IP - C/C++ - 清泛网 - 专注C/C++及内核技术

...hostinfo结构变量中的h_addr_list转化为标准的IP地址(如202.197.11.12.) //printf(" IP地址: %s/n",ip); //输出IP地址 sprintf(szIPAddr,"%s",ip); } } WSACleanup(); //卸载Winsock库,并释放所有资源 } } 不解释^_^。C++ 主机名 域名...
https://www.tsingfun.com/it/cpp/2186.html 

MFC 获取当前时间的几种方法总结 - C/C++ - 清泛网 - 专注C/C++及内核技术

...ay = atoi(strTime.substr(8, 2).c_str()); st.tm_hour = atoi(strTime.substr(11, 2).c_str()); st.tm_min = atoi(strTime.substr(14, 2).c_str()); st.tm_sec = atoi(strTime.substr(17, 2).c_str()); tt = mktime(&st); MFC 当前时间
https://www.tsingfun.com/it/cpp/2432.html 

C++ 智能指针shared_ptr,weak_ptr,shared_from_this实践 - C/C++ - 清泛网 - 专注C/C++及内核技术

...锁且对象很小在栈上完成拷贝,效率相差不大) 2438c++11,shared_ptr,weak_ptr,shared_from_this