随笔分类 -  c++

摘要:所有的警告都被当作是错误 在全局域: cc1plus: 错误:unrecognized command line option ‘-Wno-unknown-warning’ [-Werror] cc1plus:所有的警告都被当作是错误 解决办法:去除CMakeLists.txt中的-Werror 阅读全文
posted @ 2023-10-11 15:31 风中奔跑 阅读(801) 评论(0) 推荐(0)
摘要:读取二进制文件示例代码: #include <iostream> #include <vector> #include <fstream> std::vector<char> ReadFile(const std::string& fileName) { std::ifstream f(fileNa 阅读全文
posted @ 2023-07-21 03:10 风中奔跑 阅读(188) 评论(0) 推荐(0)