看板 EE_DSnP 關於我們 聯絡資訊
請不要將它想得太複雜了, 我並沒有要大家寫程式去算出來, 你只要參考 lecture note "1. Intro to Computers and C++ - aux", page 9. For example, cout << INT_MAX << endl; 因為 INT_MAX (or others) may vary from machines to machines. 我想要大家確定一下你的 UINT_MAX 的確是 2^32... -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 59.121.134.53
joshepsol:結果出來是"2147483647"天文數字懶得算了啦 10/22 02:32
joshepsol:用M$小算盤的結果是2^31-1ㄟ 好奇怪的結果 10/22 02:35
joshepsol:喔喔 不好意思搞錯了 那是INT_MAX 10/22 02:59