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

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

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

... { public: CPoint point; CNode() { point.x = 0; point.y = 0; } void operator = (CPoint& p) //运算符=的重载 { point = p; } }; 6、CList的序列化: CList是一个继承了CObject的类,并且已经实...
https://www.tsingfun.com/it/cpp/1354.html 

BugTrap:程序崩溃快照、bug跟踪之利器 - C/C++ - 清泛网 - 专注C/C++及内核技术

...un.com")); // 最新的Log文件附上 TCHAR szLogFile[MAX_PATH] = { 0 }; GetCurrentDirectory(MAX_PATH, szLogFile); SYSTEMTIME sys; GetLocalTime(&sys); _stprintf_s(szLogFile, _T("%s\\logs\\%4d%02d%02d.log"), szLogFile, sys.wYear, sys.wMonth, sys.wDay); BT_AddLogFile(szLogFile); ...
https://www.tsingfun.com/it/cpp/1372.html 

Boost智能指针——shared_ptr - C/C++ - 清泛网 - 专注C/C++及内核技术

...,就将该对象的引用计数减一,如果该对象的引用计数为0的时候,说明没有任何指针对其管理,才调用delete释放其所占的内存。 上面的那个例子可以的图示如下: sp1对implementation对象进行管理,其引用计数为1 增加sp2...
https://www.tsingfun.com/it/cpp/1435.html 

std::find,std::find_if使用小结 - C/C++ - 清泛网 - 专注C/C++及内核技术

... operator()(ProductAccount p) { return (product.compare(p.Product) == 0); } std::string product; } finder_t; int _tmain(int argc, TCHAR* argv[], TCHAR* envp[]) { ProductAccountVec vecProductAccount; ProductAccount pa1 = {"p1", "a1"}; vecProductAccount.push_back(pa1); Pr...
https://www.tsingfun.com/it/cp... 

MFC Telnet Application(mfc telnet 端口,代码实现、不调用telnet.exe) ...

...码工程升级后,可能出现编译不过的情况,请将stdafx.h中0x0410全部改为0x0501即可。The article demonstrates an MFC GUI Telnet application with server capabilities for incoming connections support. Download demo - 29.9 KB Download source - 42.1 KB Introduction I've d...
https://www.tsingfun.com/it/cpp/1469.html 

MFC SysLink的使用方法 - C/C++ - 清泛网 - 专注C/C++及内核技术

...DR; if (wcscmp(pNMLink->item.szUrl, L"https://www.tsingfun.com") == 0) { // 主要执行语句 ShellExecuteW(NULL, L"open", pNMLink->item.szUrl, NULL, NULL, SW_SHOWNORMAL); } *pResult = 0; } MFC SysLink
https://www.tsingfun.com/it/cpp/1491.html 

c++ boost库 序列化与反序列化 - C/C++ - 清泛网 - 专注C/C++及内核技术

...ch (...) { return -1; } return 0; } //从文件加载结构体数据 template<typename TemplateStruct> int load(TemplateStruct & templateStruct,const std::string &strFileName,const unsigned int version = SERIALIZATION_VERSION) { try {...
https://www.tsingfun.com/it/cpp/1512.html 

c++编译错误:invalid new-expression of abstract class type - C/C++ - ...

...要实现,这样才能new 子类。 纯虚函数例如 void fun() = 0; 是纯虚函数,不是纯虚函数不作要求。 另外,void fun() { } 空函数体也是实现。 纯虚函数相当于C#中abstract抽象类。 =0 说明函数是抽象的方法,谁继...
https://www.tsingfun.com/it/cpp/1528.html 

sizeof、strlen简单总结 - C/C++ - 清泛网 - 专注C/C++及内核技术

... p4字符串长度std::string4字符串长度"......"字符串长度+1 (' 0')字符串长度 sizeof strlen const char* p 4 字符串长度 std::string 4 字符串长度 "......" 字符串长度+1 ('\0') 字符串长度 sizeof strlen 总结
https://www.tsingfun.com/it/cpp/1560.html 

获取控件的值的几种方法总结 - C/C++ - 清泛网 - 专注C/C++及内核技术

...:CString str;GetDlgItemText(IDC_EDIT_TEST, str);int d=atoi(str.GetBuffer(0));更优雅的:.h:int m_editTest;.cpp:v...最简单直观的: CString str; GetDlgItemText(IDC_EDIT_TEST, str); int d=atoi(str.GetBuffer(0)); 更优雅的: .h:int m_editTest; .cpp: void CxxDlg::DoDat...