c++版hello word

c++版hello word

代码

#include "iostream" //包含c++的头文件 iostream

using namespace std; //使用命名空间 std标准的命名空间(这个命名空间中定义了很多标准定义)

void main() 
{
	//cout 标准输入 黑屏幕
	//endl 换行 \n
	//在小黑屏中打印并换行
	cout << "hello word" << endl;
	system("pause");
}

运行结果
运行结果

发布了5 篇原创文章 · 获赞 5 · 访问量 242

猜你喜欢

转载自blog.csdn.net/RuiHe_pan/article/details/105143387