作者ric2k1 (Ric)
看板EE_DSnP
標題[Office Hour] 為什麼我的 long long compile 不成功?
時間Tue Oct 23 21:01:34 2007
See this code...
#include <iostream>
using namespace std;
int main()
{
long long ll;
cout << sizeof(ll) << endl; // 8 <== 8 Bytes = 64 bits
// cout << 123456789012345 << endl; // This line has compilation error
cout << 123456789012345LL << endl; // see the difference?
}
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.121.134.155