{"rsdb":{"rid":"155749","subhead":"","postdate":"0","aid":"116928","fid":"45","uid":"1","topic":"1","content":"
\n

c\u8bed\u8a00<\/a>\u4e2ddouble\u7c7b\u578b\u6570\u636e\u7684\u8f93\u5165\u548c\u8f93\u51fa<\/strong><\/p> \n

double a;<\/p> \n

scanf(\"%f\",&a); \/\/\u5e94\u7528scanf(\"%lf\",&a);<\/p> \n

\u6267\u884c\u4e0a\u9762\u8bed\u53e5\u65f6\uff0c\u53d1\u73b0double\u7c7b\u578b\u7684\u8f93\u5165\u4e0d\u80fd\u4f7f\u7528%f\u8fdb\u884c\u8f93\u5165\uff0c\u5f97\u7528%lf\u624d\u80fd\u6b63\u5e38\u5f97\u5230a\u7684\u503c\u3002<\/p> \n

\u800c\u5728\u8f93\u51fadouble\u7c7b\u578b\u65f6\u5374\u53ef\u4ee5\u7528%f\uff0c\u8fd9\u662f\u56e0\u4e3aprintf(\"%f\",a);\u5728\u6267\u884c\u65f6C\u81ea\u52a8\u5c06float\u578b\u7684\u53c2\u6570\u8f6c\u6362\u6210double\u578b\u3002<\/p> \n

\u6545double\u578b\u7684\u8f93\u5165\u8f93\u51fa\u5f62\u5f0f\u5982\u4e0b\uff1a<\/p> \n

double a;<\/p> \n

scanf(\"%lf\",&a);<\/p> \n

printf(\"%f\",a);<\/p> \n<\/dd>","orderid":"0","title":"c\u8bed\u8a00\u4e2ddouble\u7c7b\u578b\u6570\u636e\u7684\u8f93\u5165\u548c\u8f93\u51fa","smalltitle":"","mid":"0","fname":"c\u8bed\u8a00\u7f16\u7a0b","special_id":"0","bak_id":"0","info":"0","hits":"77","pages":"1","comments":"0","posttime":"2016-12-28 08:15:38","list":"1482884138","username":"admin","author":"","copyfrom":"","copyfromurl":"","titlecolor":"","fonttype":"0","titleicon":"0","picurl":"http:\/\/www.cppentry.com\/upload_files\/","ispic":"0","yz":"1","yzer":"","yztime":"0","levels":"0","levelstime":"0","keywords":"\u8a00\u4e2d<\/A> double<\/A> \u7c7b\u578b<\/A> \u6570\u636e<\/A> \u8f93\u5165<\/A> \u8f93\u51fa<\/A>","jumpurl":"","iframeurl":"","style":"","template":"a:3:{s:4:\"head\";s:0:\"\";s:4:\"foot\";s:0:\"\";s:8:\"bencandy\";s:0:\"\";}","target":"0","ip":"14.17.22.31","lastfid":"0","money":"0","buyuser":"","passwd":"","allowdown":"","allowview":"","editer":"","edittime":"0","begintime":"0","endtime":"0","description":"c\u8bed\u8a00\u4e2ddouble\u7c7b\u578b\u6570\u636e\u7684\u8f93\u5165\u548c\u8f93\u51fa","lastview":"1487520557","digg_num":"0","digg_time":"0","forbidcomment":"0","ifvote":"0","heart":"","htmlname":"","city_id":"0"},"page":"1"}