02 第一个C程序-C书写HelloWorld_哔哩哔哩_bilibili
1 第一个C++程序
编写一个C++程序总共分为4个步骤
-  
创建项目
 -  
创建文件
 -  
编写代码
 -  
运行程序
 
1.1 创建项目
Visual Studio是我们用来编写C++程序的主要工具,我们先将它打开


1.2 创建文件
右键源文件,选择添加->新建项

给C++文件起个名称,然后点击添加即可。

1.3 编写代码
#include<iostream>
using namespace std;
int main() {
    cout << "Hello world" << endl;
    system("pause");
    return 0;
} 
1.4 编译和运行程序





















