大约有 5,240 项符合查询结果(耗时:0.0090秒) [XML]

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

std::map strng key编译错误 - C/C++ - 清泛网 - 专注C/C++及内核技术

...误,原因很简单,少了 #include <string>(注意,不是string.h,如果包含了string.h,请改为string)乱七八糟的错误,原因很简单,少了 #include <string> (注意,不是string.h,如果包含了string.h,请改为string)map strng key 编译错误
https://www.tsingfun.com/it/cpp/1526.html 

error: ISO C++ forbids declaration of \'XXXX\' with no type - C/C++ - 清泛网 - 专注C/C++及内核技术

error: ISO C++ forbids declaration of 'XXXX' with no type出现这个错误,一般是由于两个CPP相互都相互包含了对方的头文件造成的,比如:当mainwindow cpp、configdialog cpp两个文件,分别包含了对方的头文件,并且分别又在自己的类中声明 出现...
https://www.tsingfun.com/it/cpp/1571.html 

CString 的头文件是什么? - C/C++ - 清泛网 - 专注C/C++及内核技术

CString 的头文件是什么?#include <cstringt.h> MFC-only string objects(MFC工程)#include <atlstr.h> Non-MFC string objects(非MFC工程)#include <cstringt.h> MFC-only string objects(MFC工程) #include <atlstr.h> Non-MFC string objects...
https://www.tsingfun.com/it/cpp/1574.html 

MFC 多线程编程简单实例 - C/C++ - 清泛网 - 专注C/C++及内核技术

MFC 多线程编程简单实例简单的例子:#include "stdafx.h"#include <windows.h>DWORD WINAPI ThreadProc(LPVOID lpParam){ printf("ThreadProc...简单的例子: #include "stdafx.h" #include <windows.h> DWORD WINAPI ThreadProc(LPVOID lpParam) { printf("ThreadProc\n"); ...
https://www.tsingfun.com/it/cpp/1962.html 

CListCtrl 行高设置,自定义行高 - C/C++ - 清泛网 - 专注C/C++及内核技术

...,自定义行高先看效果:主要步骤及代码剖析:MyListCtrl.h#pragma onceclass CMyListCtrl : public CListCtrl{public:CMyListCtrl(void);~CMyListC...先看效果: 主要步骤及代码剖析: MyListCtrl.h #pragma once class CMyListCtrl : public CListCtrl { public: CMy...
https://www.tsingfun.com/it/cpp/2033.html 

atol 头文件 - C/C++ - 清泛网 - 专注C/C++及内核技术

...名:atol功能: 把字符串转换成长整型数用法: longatol(const char *nptr);程序例:#include <stdlib.h> #includ...#include <stdlib.h> 函数名: atol 功 能: 把字符串转换成长整型数 用 法: long atol(const char *nptr); 实例: #include <stdlib.h> #include <stdi...
https://www.tsingfun.com/it/cpp/2133.html 

给VC/SDK中的应用程序加上皮肤(实例演示) - C/C++ - 清泛网 - 专注C/C++及内核技术

...原理雷同,废话不多说了。简单说明一下过程1、复制 SkinH.dll、SkinH.lib、SkinH.h ... 本实例运行效果图 网上MFC加皮肤的资料蛮多的,SDK方面的相对较少,但是原理雷同,废话不多说了。 简单说明一下过程 1、复制 SkinH.dll、SkinH.l...
https://www.tsingfun.com/it/cpp/2136.html 

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

C++ 通过主机名/域名获取IP代码如下:#include <winsock2.h> 该头文件定义了Socket编程的功能 #pragma comment(lib,"ws2_32.lib") 连接ws2_32.lib库...代码如下: #include <winsock2.h> //该头文件定义了Socket编程的功能 #pragma comment(lib,"ws2_32.lib") ...
https://www.tsingfun.com/it/cpp/2499.html 

use of deleted function std::unique_ptr 编译错误剖析,你可能少了一个st...

...td::move编译报错日志如下: usr include c++ 4 7 bits stl_construct h:77:7: error: use of deleted function & 39;std::unique_ptr<_Tp, _Dp>::unique_ptr(const std::unique_p 编译报错日志如下: /usr/include/c++/4.7/bits/stl_construct.h:77:7: error: use of deleted function 'std::uni...
https://www.tsingfun.com/it/tech/2014.html 

vim 命令与快捷键 - 更多技术 - 清泛网 - 专注C/C++及内核技术

...首a:光标前A:行末o:光标后插入新行O:光标上插入新行定位h:leftj:downk:upl:right$:行尾0:行首H:...:set nu 设置行号 插入命令 i:光标后 I:行首 a:光标前 A:行末 o:光标后插入新行 O:光标上插入新行 定位 h:left j:down k:up l:right $:...