using namespace std; // 命名空间,声明std可以使用
cout << endl; // 有换行效果,表示一段内容独占一行
cin.get(); // 目前有暂停命令行窗口的作用
return 0; // 返回一个值为0
using namespace std; // 命名空间,声明std可以使用
cout << endl; // 有换行效果,表示一段内容独占一行
cin.get(); // 目前有暂停命令行窗口的作用
return 0; // 返回一个值为0
需要英文输入法输入命令
#include "stdafx.h"
#include <iostream>
int main()
{
using namespace std;
cout <<"你好";
cout <<endl;
cout <<"我开始学程序";
return 0;
}
开始调试会自动关闭
开始执行不执行
#include <iostream>
int main()
cin,get(); 不关闭运行窗口
cin.get();
#include <iostream>
int main()
{
using namespace std;
cout<<"你好";
cout<<endl;
cout<<"我开始学程序了";
cin.get();
return 0;
}
/*
输出:
你好
我开始学程序了
*/
01
-在解决方案下面创建项目
1.解决方案下可以有很多个项目