chapter2 start cpp
#include <iostream> // 预处理器将iostream文件添加到程序中,
//将其内容随原代码文件的内容一起被发送给编译器
int main() // function header
{ // start of function body
using namespace std; // 这使得iostream的定义对程序可用,using指令
cout << "Come up and C++ me some time."; // cout是个预定义的对象
cout << endl; // start a new line
cout << "You won't regret it!" << endl; // more output
// If the output window closes before you can read it,
// add the following code:
// cout << "Press any key to continue." <<endl;
// cin.get();
return 0; // terminate main()
} // end of function body