再學C++ ─ I/O streams 篇

幾乎所有的內容都從 “Data Structure and Programming Prof. Chung-Yang (Ric) Huang” 取得 Formatted und Unformatted Unformatted I/O (Low-level) get, getline, put, read, write… high-speed, high-volume may have portability problem Formatted I/O (High-level) operators “<<“ and “>>”, I/O manipulators bytes are grouped into meaningful units (e.g. integer, float and character…), and sensitive to data types If unexpected data Read more about 再學C++ ─ I/O streams 篇[…]

再學C++

前言 修了電機的資料結構,還蠻有趣的。這篇大概就是放一些容易搞錯的東西。 內容幾乎都來自Data Structure and Programming Prof. Chung-Yang (Ric) Huang。 主文 pointer The memory size of a memory address depends on the machine architecture 32-bit machine: 4 Bytes 64-bit machine: 8 Bytes The memory content of the pointer variables For 32-bit machine, the last 2 bits are 0’s For 64-bit machine, the last 3 bits Read more about 再學C++[…]