VC6.0 下 sizeof(int)=2、sizeof(double)=4,與現代 64 位編譯器常見的 4 和 8 不符。
int 為 16 位(2 字節)。int 為 32 位(4 字節),double 為 64 位(8 字節)。sizeof(char)=1、sizeof(short) ≤ sizeof(int) ≤ sizeof(long) ≤ sizeof(long long),具體大小由實現定義。sizeof(int)、sizeof(double) 而非硬編碼數字。std::int32_t、std::int64_t (C++11 編譯器實現差異是跨平台開發必須面對的現實,使用標準類型特性編寫可移植代碼。