3.4.3 Srecify

来源:互联网 发布:淘宝直通车可以退款吗 编辑:程序博客网 时间:2024/06/05 21:14
#include <iostream>using namespace std;int main(){char c;unsigned char cu;int i;unsigned int iu;short int is;short iis;unsigned short int isu;unsigned short iisu;long int il;long iil;unsigned long int ilu;unsigned long iilu;float f;double d;long double ld;count << "\n char= " <<sizeof(c)      <<"\n unsigned char= " <<sizeof(cu)      <<"\n int= "<<sizeof(i)      <<"\n unsigned int= " <<sizeof(iu)      <<"\n short= " <<sizeof(is)      <<"\n unsigned short= " <<sizeof(isu)      <<"\n long= "<<sizeof(il)      <<"\n unsigned long= " <<sizeof(ilu)      <<"\n float= " <<sizeof(f)      <<"\n double= "<<sizeof(d)      <<"\n long double= " << sizeof(ld)      <<endl;}

原创粉丝点击