0 Star 0 Fork 0

魏士杰/cmake-tutorial

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
main.cpp 615 Bytes
一键复制 编辑 原始数据 按行查看 历史
魏士杰 提交于 2020-06-19 10:53 +08:00 . first commit
#include <iostream>
#include "config.h"
#ifdef USE_USER_TOOLS
#include "tools.h"
#endif
int main(int argc, char * argv[]) {
std::cout << "Input Command Number : " << argc << std::endl;
if (argc >= 1) {
// report version
std::cout << argv[0] << " Version " << CMakeTutorial_VERSION_MAJOR << "."
<< CMakeTutorial_VERSION_MINOR << std::endl;
}
if (argc >= 2) {
const double inputValue = std::stod(argv[1]);
std::cout << "Input Number : " << inputValue << std::endl;
}
#ifdef USE_USER_TOOLS
print_user("Test Lib Function !");
#endif
return 0;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/flamealpha/cmake-tutorial.git
git@gitee.com:flamealpha/cmake-tutorial.git
flamealpha
cmake-tutorial
cmake-tutorial
master

搜索帮助