作者ric2k1 (Ric)
看板EE_DSnP
標題[建議] HW#3 problem 1
時間Sun Oct 21 20:50:49 2007
請不要將它想得太複雜了,
我並沒有要大家寫程式去算出來,
你只要參考 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
1F:推 joshepsol:結果出來是"2147483647"天文數字懶得算了啦 10/22 02:32
2F:推 joshepsol:用M$小算盤的結果是2^31-1ㄟ 好奇怪的結果 10/22 02:35
3F:推 joshepsol:喔喔 不好意思搞錯了 那是INT_MAX 10/22 02:59