C++ Prinmer Plus 学习笔记 第二章(持续更新)
第一个C++程序(显示消息)
源码:
#include <iostream> //a PREPROCESSOR directive
int main() //function header
{ //start of function body
using namespace std; //make definitions visible
cout<<"come up and C++ some time."; //message
cout<<endl; //start a new line
cout<<"you wonit regret it!"<<endl;
return 0; //terminate main()
} //end of function body
注释英语翻译:
a PREPROCESSOR directive(预处理指令)
function header(函数头)
Start of function body(函数体起始)