学习目的
使用C--输出
教程
1.导入头文件
#include<iostream>
2.导入main函数
int main()
{
}
3.写using namespacce std(必须写)加分号!!
4.使用cout指令输出
int main()
{
using namespace std;
cout<<"sdffgsdj";
}
最后一点,+return 0!!!!!!!!!
整体代码
#include<iostream>
int main()
{
using namespace std;
cout<<"Come up and C++ me some time.";
cout<<endl;
cout<<"You won′t regret it!"<<endl;
return 0;
}
注:可以输出别的