您的位置:首页 > 其它

浮点库的连接问题(针对有的时候scanf("%f",&fn);出现的异常)

2006-07-16 14:59 603 查看
浮点库链接,
只要在 输入语句之前加 一个显式的浮点操作即可 ...

早期为了节省资源,
在默认情况下是不链接浮点库的。
(也就是在没有显式浮点操作的情况下,浮点库将不被链接,使用浮点操作就会发生错误)



Q. I get a "floating point formats not linked" message when I run
my program. What can I do about it?

A. Floating point formats (for scanf() and related functions) are
not always linked, for savings in executable size. To force their
inclusion, put the following somewhere in your source files:

extern unsigned _floatconvert;
#pragma extref _floatconvert

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐