Project_list2.1

函数功能:显示一条信息

// 函数功能:显示一条信息

#include <iostream>                     //一个预处理器指令
int main()                              //函数头
{                                       //函数体的开始
	using namespace std;                //使定义可见
	cout << "  Hello World!" << endl;   //函数信息
	cout << endl;                       //开始新的一行
	cin.clear();                        //清除cin流的错误状态
	cin.sync();                         //清除缓存区的数据流
	cin.get();                          //对输入的面向行的读取
	return 0;                           //结束 main()函数
}                                       //函数体的结束

猜你喜欢

转载自blog.csdn.net/william_hehe/article/details/80795378
2.1