C++之hello world

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/shuaicenglou3032/article/details/78322871
//============================================================================
// Name        : CTest.cpp
// Author      : Fuwii
// Version     : V0.01
// Copyright   : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================

#include <iostream>
using namespace std;

int main() {
	cout << "你好,世界" << endl;
	return 0;
}

今日开始C++学习,习惯性的使用Eclipse,装上CDT之后就能编译C++了,感觉还是用惯了的工具好用。

凡是用到cout和cin,都需要导入iostream头文件。

命名空间暂时不懂,先记下来。

编译器采用的MinGW GCC

猜你喜欢

转载自blog.csdn.net/shuaicenglou3032/article/details/78322871