1、创建新项目
先点击创建新项目——选择空项目——点击下一步
编写一个项目名称——选择项目路径——点击创建
点击源文件——点击添加——选择新建项
选择C++文件——输入项目名称——点击添加即可——之后就可以书写代码啦…
2、C++编译的一个整体框架
先认识这个基本框架即可==
#include <iostream>
using namespace std;
int main()
{
system("pause");
return 0;
}
3、输入hello world
在<<" "<<内可输入自己想输入的内容
endl 为换行符(注意不要打成1了==)
cout << "hello world" << endl;
4、hello world
#include <iostream>
using namespace std;
int main()
{
cout << "hello world" << endl;
system("pause");
return 0;
}
5、运行程序
点击本地windows调试器即可,第一个c++程序就结束了~