/*
算数类型:整形,浮点型
布尔类型:真(true),假(false)
带符号类型(signed):可以表示正数,负数,0;
无符号数类型(unsigned):只可以表示大于0的数;
*/#include<iostream>intmain(){//short 短整型16位short f =1234;
std::cout <<"f="<< f << std::endl;//int 16位int x =123456.789;
std::cout <<"x="<< x << std::endl;//long 16位long y =12345678.9;
std::cout <<"y="<< y << std::endl;//long long 32位longlong a =1234567891234567.89;
std::cout <<"a="<< a << std::endl;//float 单精度浮点数,六位有效数字float b =13.245, c =12.65734;
std::cout <<"b="<< b <<"\n"<<"c="<< c << std::endl;//double 双精度浮点数,10位有效数字double d =1423.65423, e =1783241.98049;
std::cout <<"d="<< d <<"\n"<<"e="<< e << std::endl;//long double 扩展精度浮点数,10位有效数字longdouble g =123453212.876957;
std::cout <<"g="<< g << std::endl;system("pause");return0;}