正在加载图片...
cout<<"10.长整型( long int).in"; cout<<"1.有符号长整型( signed long int).n"; cout<"12无符号长整型( unsigned long int.ln"; cout<<"13实型foat).Ⅶn" cout<<"14双精度型( double).in" cout<<"15.长双精度型( long double)n"; g while(k<llk>15): switch(k)4 case 1: cout<<"sizeof(char)="<<sizeof(char)<<"byte(s)"<<'ln' s++: break. case 2: cout<<"sizeof(signed char)=<<sizeof(signed char)<<"byte(s)"<<n case 3: cout<<"sizeof(unsigned char )="<<sizeof(unsigned char<<"byte(s)"<<\n s++: break. case 4: cout<<"sizeof(short int )="<<sizeof( short int <" byte(s)"<<n s++: break case 5: cout<<"sizeof(signed short int)="<<sizeof(signed short int)<<"byte(s)"<<'ln' S++: break. case 6: cout<<"sizeof(unsigned short int )=<<sizeof(unsigned short int)<<"byte(s)"<<ln' S++: break. case 7: cout<<"sizeof(int =<<sizeof(int)<<"byte(s)"<<n ++ break case 8 cout<<" sizeof(signed int ="<<sizeof(signed int)<<"byte(s)"<<\n s++: break case 9 cout<<"sizeof(unsigned int)="<<sizeof(unsigned int)<<"byte(s)"<<n s++: break. case 10: cout<<"sizeof(long int)="<<sizeof(long int)<<"byte(s)"<<\n case 11: cout<<"sizeof(signed long int)="<<sizeof(signed long int)<<"byte(s)"<<n ++ break case 12: cout<<"sizeof(unsigned long int) =<<sizeof(unsigned long int)<<"byte(s)"<<n s++: brea case 13: cout<<"sizeof(float)="<<sizeof(float)<<"byte(s)"<<un case 14: cout<<"sizeof( double)="<<sizeof(double)<<"byte(s)"<<n S++: break case 15: cout<<"sizeof(long double)="<<sizeof(long double)<< byte(s)"<<\ncout<<"10.长整型(long int).\n"; cout<<"11.有符号长整型(signed long int).\n"; cout<<"12.无符号长整型(unsigned long int).\n"; cout<<"13.实型(float).\n"; cout<<"14.双精度型(double).\n"; cout<<"15.长双精度型(long double).\n"; } }while(k<1||k>15); switch(k){ case 1:cout<<"sizeof(char)="<<sizeof(char)<<"byte(s)"<<'\n'; s++; break; case 2:cout<<"sizeof(signed char)="<<sizeof(signed char)<<"byte(s)"<<'\n'; s++; break; case 3:cout<<"sizeof(unsigned char)="<<sizeof(unsigned char)<<"byte(s)"<<'\n'; s++;break; case 4:cout<<"sizeof(short int)="<<sizeof(short int)<<"byte(s)"<<'\n'; s++;break; case 5:cout<<"sizeof(signed short int)="<<sizeof(signed short int)<<"byte(s)"<<'\n'; s++; break; case 6:cout<<"sizeof(unsigned short int)="<<sizeof(unsigned short int)<<"byte(s)"<<'\n'; s++; break; case 7:cout<<"sizeof(int)="<<sizeof(int)<<"byte(s)"<<'\n'; s++; break; case 8:cout<<"sizeof(signed int)="<<sizeof(signed int)<<"byte(s)"<<'\n'; s++; break; case 9:cout<<"sizeof(unsigned int)="<<sizeof(unsigned int)<<"byte(s)"<<'\n'; s++; break; case 10:cout<<"sizeof(long int)="<<sizeof(long int)<<"byte(s)"<<'\n'; s++; break; case 11:cout<<"sizeof(signed long int)="<<sizeof(signed long int)<<"byte(s)"<<'\n'; s++; break; case 12:cout<<"sizeof(unsigned long int)="<<sizeof(unsigned long int)<<"byte(s)"<<'\n'; s++; break; case 13:cout<<"sizeof(float)="<<sizeof(float)<<"byte(s)"<<'\n'; s++; break; case 14:cout<<"sizeof(double)="<<sizeof(double)<<"byte(s)"<<'\n'; s++; break; case 15:cout<<"sizeof(long double)="<<sizeof(long double)<<"byte(s)"<<'\n';
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有