随笔分类 - C++工程
构建C++工程相关的学习记录
摘要:Android-NDK: 安卓-原生开发工具包 写一个Hello World #include <iostream> using namespace std; int main(int argc, const char *argv[]) { for(int i=0; i<5; i++) { std:
阅读全文
摘要:一、可供选择的集成开发环境 Visual Studio (宇宙第一IDE) 下载:https://visualstudio.microsoft.com/zh-hans/vs/older-downloads/ VS2019开始支持CMake构建工程 VS installer安装不同的开发套件 JetB
阅读全文
摘要:TODO 动态库 静态库 Linux .so .a Windows .dll .lib 参考资料 32/64bit判断:https://www.baeldung.com/linux/check-library-32-or-64-bit 编译、链接和库 [Learncpp] Introduction
阅读全文
摘要:CMake --> Makefile/Ninja/MSVC CMake解决了makefile、MSVC不能跨平台的问题,ninja可以适用于Linux和Windows系统 cmake -S . -B build -D # 指定Release/Debug cmake --build build CMa
阅读全文
摘要:示例一:HelloWorld 1.1 代码 /*hello_world.cpp*/ #include <iostream> using namespace std; int main() { cout << "Hello, world!" << endl; return 0; } 1.2 编译 1.
阅读全文
摘要:学习C++主函数的参数输入,用于从command line中读取参数,下面以读取视频文件为例进行说明 #include <iostream> #include <fstream> #include <string> #include <opencv2/opencv.hpp> int main(int
阅读全文
摘要:1. 变量 变量名一律小写,单词间以下划线相连。类的成员变量以下划线结尾。 普通变量命名 举例: std::string window_name; // OK 使用下划线 std::string windowname; // OK 全部小写 std::string windowName; // Ba
阅读全文