当前位置:网站首页>CPP (2) creating CPP project
CPP (2) creating CPP project
2020-11-07 20:58:00 【Coxhuang】
List of articles
- first Cpp Example
- #1 Environmental Science
- #2 summary
- #3 Start
- #3.1 Method 1 :Clion
- #3.2 Method 2 : Manually create
first Cpp Example
#1 Environmental Science
macOS 10.15.5
#2 summary
This article creates a simple Cpp engineering , Compare the similarities and differences between the two methods , The purpose of each document is not explained here , Just two kinds of creation Cpp The method of Engineering
#3 Start
GitHub Example :https://github.com/Coxhuang/FKCpp/tree/master/1.first_demo
#3.1 Method 1 :Clion
- New project
- function main.cpp
#3.2 Method 2 : Manually create
- Create the following file :
build CMakeLists.txt main.cpp
among :
- build: Empty folder
- CMakeLists.txt The contents are as follows :
cmake_minimum_required(VERSION 3.16) project(demo) set(CMAKE_CXX_STANDARD 11) add_executable(demo_exe main.cpp)
- main.cpp The contents are as follows :
//
// Created by Cox on 2020/8/30.
//
#include <iostream>
int main() {
std::cout << "Hello, World!" << std::endl;
return 0;
}
2. cmake
- Use terminal Get into built Under the table of contents
cmake ..
3. make compile
- stay built Under the table of contents
make
4. function
- stay built Under the table of contents , Run the executable
./demo_exe
Participation of this paper Tencent cloud media sharing plan , You are welcome to join us , share .
版权声明
本文为[Coxhuang]所创,转载请带上原文链接,感谢
边栏推荐
- 来自不同行业领域的50多个对象检测数据集
- Web安全(一)---浏览器同源策略
- 是时候结束 BERTology了
- 虚拟DOM中给同一层级的元素设置固定且唯一的key为什么能提高性能
- Data transmission of asynchronous serial communication controlled by group bus communication
- Improvement of maintenance mode of laravel8 update
- Awk implements SQL like join operation
- 使用 Xunit.DependencyInjection 改造测试项目
- 浅谈HiZ-buffer
- 【C++学习笔记】C++ 标准库 std::thread 的简单使用,一文搞定还不简单?
猜你喜欢

The instanceof operator in ecmascript7 specification

use Xunit.DependencyInjection Transformation test project

浅谈HiZ-buffer

Three steps, one pit, five steps and one thunder, how to lead the technical team under the rapid growth?

Big data algorithm - bloon filter

技术总监7年自述——如何选择一家好公司

云计算之路-出海记:整一台 aws 免费云服务器

数据库基本操作

Jingtao project day09

工作1-3年的程序员,应该具备怎么样的技术能力?该如何提升?
随机推荐
Web Security (3) -- CSRF attack
聊一聊数据库中的锁
Don't treat exceptions as business logic, which you can't afford
关于晋升全栈工程师,从入门到放弃的神功秘籍,不点进来看一看?
Practice of Xiaoxiong school development board: real equipment access of smart street lamp sandbox experiment
手撕算法-手写单例模式
Cpp(二) 创建Cpp工程
awk实现类sql的join操作
In the age of screen reading, we suffer from attention deficit syndrome
High concurrency in ngnix cluster
delphi10的rest.json与system.json的踩坑
How Facebook open source framework simplifies pytorch experiment
看一遍就理解,图解单链表反转
DOM节点操作
爆一个VS2015 Update1更新带来的编译BUG【已有解决方案】
浅谈HiZ-buffer
The instanceof operator in ecmascript7 specification
Summary of the resumption of a 618 promotion project
Writing method of field and field comparison condition in where condition in thinkphpp6
获取树形菜单列表