验证各种数据类型

来源:互联网 发布:alter mysql自增长主键 编辑:程序博客网 时间:2024/06/06 21:45
#include <iostream>using namespace std; int main( ){    int b=2147483647,a;    a=b+1;    short int c=32767,d;    d=c+1;    char e='z',f;    f=e-6;     float x=3.4e-38,y;    y=x-1;     cout<<a<<'\n'        <<b<<'\n'        <<c<<'\n'        <<d<<'\n'        <<e<<'\n'        <<f<<'\n'        <<x<<'\n'        <<y<<endl;   return 0; }