Inline Functions
- 10行以上的函數不要內聯。
- 可以使用編譯器自動內聯。
Function Parameter Ordering
- 參數順序: 輸入, 輸出
- 輸入通常是值或者常量引用
Names and Order of Includes
- 舉例,在dir/foo.h 中:
- dir/foo.h
- C system files
- C++ system files
- Other libraries .h files
- Your project’s .h files
1、C C 是20世紀70年代初由貝爾實驗室開發,最初爲UNIX系統設計的程序開發語言,後來逐步脫離UNIX而成爲獨立的開發語言,並有ANSI協會進行標準化。其顯著特點: a、出現時間早,因此有大量
What are the differences between functional programming and object-oriented programming