C/C++ error C2027: 使用了未定义类型 std::basic_ifstream<_Elem,_Traits>
C/C++ error C2027: 使用了未定义类型 std::basic_ifstream - 添加头文件 即可解决 error C2027: 使用了未定义类型std::basic_ifstream 问题;
Xcode – Xcode13 The Legacy Build System will be removed in a future release
Xcode – Xcode13 The Legacy Build System will be removed in a future release - The Legacy Build System will be removed in a future release. You can configure the selected build sys...
C/C++ error:unknown type name ‘bool’
C/C++ error:unknown type name 'bool' - 在 C 语言标准 (C89) 没有定义布尔类型,所以会报错。而 C99 提供了一个头文件 定义了 bool , true 代表 1 ,false 代表 0 。只要导入 stdbool.h ,就...
C/C++ void* 和 bool 转换
C/C++ void* 和 bool 转换 - 在文章 《数据类型/变量类型》 中有做介绍;int 和 float 转换请参考 《int 和 float 相互转换》,void* 和 bool 转换如下:
C/C++ void* 和 int 转换
C/C++ void* 和 int 转换 - 在文章 《数据类型/变量类型》 中有做介绍, int 属于整数;int 和 float 转换请参考 《int 和 float 相互转换》,void* 和 int 转换如下:
Xcode – 常用快捷键的使用
Xcode – 常用快捷键的使用 Command + R 运行。 Command + . 停止 F6 单步调试 F7 跳入 F8 继续 新建项目 command+shift+n 新建文件 command+n 新建空文件 command+control+n 打开 command+o 关...
Object-C UIImage 和 CVPixelBufferRef 相互转换
Object-C UIImage 和 CVPixelBufferRef 相互转换 CVPixelBufferRef 转 UIImage UIImage 转 CVPixelBufferRef kCVPixelFormatType_OneComponent8 是单通道的黑白数据; kCVPixelFormatType_32ARG...
C/C++ 获取 exe 路径
C/C++ 获取 exe 路径 - std::string GetProgramDir() { char exeFullPath[MAX_PATH]; // Full path std::string strPath = ''; GetModuleFileName(NULL,exeFullPath,MAX_PATH); //获取带有可执...