猿问

请问以下程序要怎么操作才能实现输出呢?

#include <iostream.h>
#include <limits.h>
int main()
{
char c='\\';
cout<<c<<endl;
cout<<"'\\'"<<endl;
cout<<"int size="<<sizeof(int)<<endl;
cout<<numeric_limits<int>::max()<<"is the maxinmum int"<<endl;
}
这个要怎麼才能输出啊? cout<<numeric_limits<int>::max()<<"is the maxinmum int"<<endl;不是在<limits.h>裏面的吗?

守着星空守着你
浏览 139回答 1
1回答

慕侠2389804

#include<limits>using namespace std;cout<<numeric_limits<int>::max()<<"is the maxinmum int"<<endl;limits.h 是C头文件,不包含numeric_limits<int>::max()函数
随时随地看视频慕课网APP
我要回答