C++之hello world

来源:互联网 发布:汽车维修入库软件 编辑:程序博客网 时间:2024/06/07 15:17
//============================================================================// 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