cpp 里面定义的常数超过了long long范围

比如
const long long int c=18446744072003734121;
[Warning] this decimal constant is unsigned  only in ISO C90

 

 

解决方案:

const long long c=18446744072003734121ULL;

posted on 2012-01-07 23:58  怡红公子  阅读(665)  评论(0编辑  收藏  举报