- c++ 包含头文件 不需要.h扩展名 如 #include <iostream>
- #include <cmath> 其中头文件cmath 是有c语言converted 来的,为尊重版权加一个c前缀, 但是不需要扩展名
- c++ 也可以包含c语言的头文件 需要加后缀h 如 #include <stdio.h>
- c++ 的分号是 terminator 终止符, 不是分隔符seperator 所以不能省略。
- c++的规范编程:一个语句占一行;函数体的两个花括号分别独立占一行;函数正文要有缩进; 函数后面的括号不空格。
- internal language or machine language runtime version of the programm
- linux 上也可以受用UNIX 的cc命令
- void 类型的函数最后不需要加return 语句。
- prototype header body
- c++ statement types: declaration statement ; assignment statement; message statement; function call; function prototype ; return statement