C++共85篇 第5页
C/C++ QT error: dependent 'xxx' does not exist.-猿说编程

C/C++ QT error: dependent ‘xxx’ does not exist.

C/C++ QT error: dependent 'xxx' does not exist. - 在编写 QT 程序的时候,我不需要资源,于是通过 QtCreator 工程左边栏目,右键删除,之后编译出现:error qt dependant doesn not exist 解...
猿说编程的头像-猿说编程钻石会员猿说编程2年前
014261
C/C++ unicode 转 utf8-猿说编程

C/C++ unicode 转 utf8

C/C++ unicode 转 utf8 - 关于 char 和 wchar 相互转换,文章《 char 和 wchar_t 相互转换》有详细介绍和使用案例,默认 wchar 为 unicode 编码,如果需要将 unicode 编码转为 utf-8 编码如何完...
猿说编程的头像-猿说编程钻石会员猿说编程2年前
013181
C/C++ error C2027: 使用了未定义类型 std::basic_ifstream<_Elem,_Traits>-猿说编程

C/C++ error C2027: 使用了未定义类型 std::basic_ifstream<_Elem,_Traits>

C/C++ error C2027: 使用了未定义类型 std::basic_ifstream - 添加头文件 即可解决 error C2027: 使用了未定义类型std::basic_ifstream 问题;
猿说编程的头像-猿说编程钻石会员猿说编程2年前
010330
C/C++ error:unknown type name 'bool'-猿说编程

C/C++ error:unknown type name ‘bool’

C/C++ error:unknown type name 'bool' - 在 C 语言标准 (C89) 没有定义布尔类型,所以会报错。而 C99 提供了一个头文件 定义了 bool , true 代表 1 ,false 代表 0 。只要导入 stdbool.h ,就...
猿说编程的头像-猿说编程钻石会员猿说编程2年前
014571
C/C++ void* 和 bool 转换-猿说编程

C/C++ void* 和 bool 转换

C/C++ void* 和 bool 转换 - 在文章 《数据类型/变量类型》 中有做介绍;int 和 float 转换请参考 《int 和 float 相互转换》,void* 和 bool 转换如下:
猿说编程的头像-猿说编程钻石会员猿说编程2年前
013160
C/C++ void* 和 int 转换-猿说编程

C/C++ void* 和 int 转换

C/C++ void* 和 int 转换 - 在文章 《数据类型/变量类型》 中有做介绍, int 属于整数;int 和 float 转换请参考 《int 和 float 相互转换》,void* 和 int 转换如下:
猿说编程的头像-猿说编程钻石会员猿说编程2年前
013380
C/C++ void* 和 float 转换-猿说编程

C/C++ void* 和 float 转换

在文章 《数据类型/变量类型》 中有做介绍, float 属于浮点数;int 和 float 转换请参考 《int 和 float 相互转换》,void* 和 float 转换如下:
猿说编程的头像-猿说编程钻石会员猿说编程2年前
026590
C/C++ svpng 将 RGBA 保存 png 图片-猿说编程

C/C++ svpng 将 RGBA 保存 png 图片

C/C++ svpng 将 RGBA 保存 png 图片 - svpng 是一个简约的 C 函数,用于将 RGB/RGBA 图像保存为未压缩的 PNG。声明如下: /*! \brief 以 PNG 格式保存 RGB/RGBA 图像。 \param out 输出流(默...
猿说编程的头像-猿说编程钻石会员猿说编程2年前
021880
C/C++ 获取 exe 路径-猿说编程

C/C++ 获取 exe 路径

C/C++ 获取 exe 路径 - std::string GetProgramDir() { char exeFullPath[MAX_PATH]; // Full path std::string strPath = ''; GetModuleFileName(NULL,exeFullPath,MAX_PATH); //获取带有可执...
猿说编程的头像-猿说编程钻石会员猿说编程2年前
09881
C/C++ nafxcw.lib(appui1.obj) : error LNK2005:

C/C++ nafxcw.lib(appui1.obj) : error LNK2005: “class CWinApp * __cdecl AfxGetApp(void)” (?AfxGetApp@@YAPEAVCWinApp@@XZ) 已经在 uafxcwd.lib(afxinl2.obj) 中定义

C/C++ nafxcw.lib(appui1.obj) : error LNK2005: 'class CWinApp * __cdecl AfxGetApp(void)' (?AfxGetApp@@YAPEAVCWinApp@@XZ) 已经在 uafxcwd.lib(afxinl2.obj) 中定义 - 附加依赖库:nafxcwd...
猿说编程的头像-猿说编程钻石会员猿说编程2年前
08410