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

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

Linux Shell中 if else及大于、小于、等于逻辑表达式写法 - C/C++ - 清泛网...

...   文件为块特殊文件为真 -s file    文件大小非0时为真 -t file    当文件描述符(默认为1)指定的设备为终端时为真 含条件选择的shell脚本 对于不含变量的任务简单shell脚本一般能胜任。但在执行一些决策任务时,...
https://www.tsingfun.com/it/cp... 

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

......; CComPtr<IBar> pBar; HRESULT hr = pFoo.QueryInterface(&pBar); (10) IsEqualObject方法 IsEqualObject方法用来判断两个接口指针释放引用的是同一个对象。 (11) != 和 == 操作符 跟普通的 一样 (12) CComPtr对IDispatch的特化 CComPtr<IDispatch> iptr; ...
https://www.tsingfun.com/it/cpp/1237.html 

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

...or<T> v) { int i; typename vector<T>::iterator vi; for(i=0,vi=v.begin(); vi!=v.end(); i++,vi++) ; return(i); } 更详细的可以参考MSDN资料: http://blogs.msdn.com/b/slippman/archive/2004/08/11/212768.aspx C++ template typename class
https://www.tsingfun.com/it/cpp/1432.html 

向CListView控件发LVN_COLUMNCLICK消息 - C/C++ - 清泛网 - 专注C/C++及内核技术

...urn FALSE; NM_LISTVIEW nmListView; memset(&nmListView, 0, sizeof(nmListView)); nmListView.iItem = -1;//NOT USED IN HERE nmListView.iSubItem = index;//INDEX VALUE nmListView.hdr.hwndFrom = listCtrl.GetSafeHwnd(); nmListView.hdr.idFrom = listCtrl...
https://www.tsingfun.com/it/cpp/1434.html 

stl 字符串std::string作为std::map主键key的实例 - C/C++ - 清泛网 - 专注C/C++及内核技术

...:map<std::string, std::string> my_map; my_map.insert(std::make_pair("10", "china")); my_map.insert(std::make_pair("20", "usa")); my_map.insert(std::make_pair("30", "english")); my_map.insert(std::make_pair("40", "hongkong")); //通过key查找 std::map<string, std::st...
https://www.tsingfun.com/it/cpp/1483.html 

stdbool.h C99标准杂谈 - C/C++ - 清泛网 - 专注C/C++及内核技术

...了四个用于布尔型的预定义宏: #define true 1 #define false 0 #define bool _Bool typdef int _Bool 但是很遗憾,Visual C++不支持C99,至少现在来看是没这个计划(参见http://en.wikipedia.org/wiki/C99)。所以stdbool.h就不能在vc里面用: http://msdn.micros...
https://www.tsingfun.com/it/cpp/1488.html 

shared_ptr指针被赋值后,原指针会引用清零、自动释放。 - C/C++ - 清泛网 ...

...tg.use_count()); printf("%d\n", *(intg).get()); return 0; } 指针
https://www.tsingfun.com/it/cpp/1500.html 

C++在堆上申请二维数组 - C/C++ - 清泛网 - 专注C/C++及内核技术

...能连续且需要多个指针才能管理 double *d[m]; for (int i=0; i<m; i++) d = new double[n]; C++ 堆 二维数组
https://www.tsingfun.com/it/cpp/1502.html 

%d,%c,%s,%x等转换符 释义 - C/C++ - 清泛网 - 专注C/C++及内核技术

...输出[e-(E-)记数法] %g(%G) 浮点数不显无意义的零"0" %i 有符号十进制整数(与%d相同) %u 无符号十进制整数 %o 八进制整数 e.g. 0123 %x(%X) 十六进制整数0f(0F) e.g. 0x1234 ...
https://www.tsingfun.com/it/cpp/1515.html 

解决:Successful WSAStartup not yet performed. Error code : 10093. - C...

解决:Successful WSAStartup not yet performed. Error code : 10093.出现10093错误的原因是应用程序没有调用 WSAStartup,或者 WSAStartup 失败。原因:调用WSASocket等Socket函数之前必须先执行WSAStartup...出现10093错误的原因是应用程序没有调用 WSAStartup...