程序清单2.1 myfist.cpp
//myfist.cpp -- displays a message
#include
int main()
{
using namespace std;
cout << "Come up and C++ me some time.";
cout << endl;
cout < "You won't regret it!" << endl;
return 0;
}
1.#include
预处理指令。C++与C样,使用一个预处理指令,该程序在进行主编译器之前对原文件进行处理在源代码被便之前,替换或添加文本
2.iostream