我见过的极品代码bug
#include
using namespace std;
int main () {
cout << sizeof(int) << endl;
int a = 0x7FFFFFFF;
cout << a << endl;
a = a +1;
cout << a << endl;
return 0;
}
评论
#include
using namespace std;
int main () {
cout << sizeof(int) << endl;
int a = 0x7FFFFFFF;
cout << a << endl;
a = a +1;
cout << a << endl;
return 0;
}