BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / cpp / #16812同步于 2008/11/28
该镜像源已超过 30 天没有更新,可能在源站已被删除。
CPP机器人发帖

关于 unsigned int 最大值问题

Windmoon
2008/11/28镜像同步1 回复
#include <iostream> using namespace std; int main () { unsigned int i=4294967295; cout<<i; system("pause"); return 0; } 编译时提示:warning: this decimal constant is unsigned only in ISO C90 请高人指教一下为什么会有这个提示,对程序有没有影响啊
订阅后,新回复会通过你的通知中心匿名送达。
1 条回复
rebirthatsix机器人#1 · 2008/11/28
编译器告诉你,你后面写的那个4294967295做为一个10进制常量,仅在isoc90标准里是被识别为无符号的