C和 C++的分別
http://blog.xuite.net/edison901/documents/3753230-C+%E5%92%8C+C%2B%2B+%E7%9A%84%E5%B7%AE%E5%88%A5+--+%E4%B8%80%E4%BA%9B%E6%B7%BA%E8%A6%8B
程式設計的思維模式:
1. procedural-based paradigm
2. object-based paradigm
3. object-oriented paradigm
4. generic paradigm
C++入門指南
http://pydoing.blogspot.hk/2014/06/cpp-guide.html
中英文術語對照
| 文字編輯器 | text editor |
| 整合開發環境 | Integrated Development Environment, IDE |
| 關鍵字 | keyword |
| 保留字 | reserved word |
| 基本內建型態 | primitive built-in type |
| 整數 | integer |
| 宣告 | declare |
| 參數列 | parameter list |
| 回傳值 | return value |
| 字串字面常數 | string literal |
| 註解 | comment |
| 標準程式庫 | standard library |
| 前置處理器 | preprocessor |
| 標頭檔 | header file |
| 識別字 | identifier |
| 變數 | variable |
| 函數 | function |
| 參數 | parameter |
| 字面常數 | literal |
| 運算子 | operator |
| 類別 | class |
| 物件 | object |
| 輸出運算子 | output operator |
| 命名空間 | name space |
| 作用域運算子 | scope operator |
| 建構子 | constructor |
| 陳述 | statement |
基本內建型態與物件
C++ 中的基本內建型態 (primitive built-in type) 屬於算術型態 (arithmetic type) ,分成四大類
基本資料型態共有九種,如下表:
| 型態類型 | 關鍵字 | 範圍 |
|---|---|---|
| 布林 | bool | true, false |
| 字元 | char | 1 位元組 |
| 寬字元 | wchar_t | 2 位元組 |
| 整數 | short | 2 位元組 |
| 整數 | int | 4 位元組 |
| 整數 | long | 4 位元組 |
| 浮點數 | float | 4 位元組 |
| 浮點數 | double | 8 位元組 |
| 浮點數 | long double | 12 or 16 位元組 |

No comments:
Post a Comment