作者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