02 2012 档案

摘要:将整数转换成浮点数:#include <stdio.h>int main(void){ int i; printf("Please input a 0x integer value: "); scanf("%x", &i); float *f = (float *)&i; printf("%f\n",*f); return 0;}将浮点数转成整数:#include <stdio.h>int main(void){ float ff; printf("Please input a flo 阅读全文
posted @ 2012-02-14 15:30 朝雾之归乡 阅读(4774) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示