//showf_pt.cpp:定义控制台应用程序的入口点。///*showf_pt.c--以两种方式显示浮点值*//*时间:2018年06月06日21:10:25代码:程序清单3.7_showf_pt.c程序_《CPrimerPlus》P49目的:printf("%e")以指数记数法来显示浮点数字*/#include"stdafx.h"int_tmain(intargc,_TCHAR*argv[]){floataboat=32000.0;doubleabet=2.14e9;longdoubledip=5.32e-5;printf("%fcanbewritten%e\n",aboat,aboat);printf("%fcanbewritten%e\n",abet,abet);printf("%fcanbewritten%e\n",dip,dip);getchar();return0;}/*在VS2010中运行结果:--------------------------------------------------32000.000000canbewritten3.200000e+0042140000000.000000canbewritten2.140000e+0090.000053canbewritten5.320000e-005--------------------------------------------------google翻译如下:32000.000000可以写成3.200000e+0042140000000.000000可以写成2.140000e+0090.000053可以写成5.320000e-005--------------------------------------------------总结:%e(打印指数记数法的数字)e4(表示小数点往右移动4位)e-5(表示小数点往左移动5位)--------------------------------------------------*/