C Run-Time Error R6002
floating-point support not loaded
The program needs the floating-point library, but the
library was not linked to the program.
A format string for a printf or scanf function contained
a floating-point format specification, and the program
did not contain any floating-point values or variables.
解决办法:
以下是MSDN中的解释,原因很简单,不细说。
具体的解决办法:参照例子,修改源码。
Many Microsoft run-time library functions require
floating-point support from a math coprocessor or from
the floating-point libraries that accompany the compiler.
Floating-point support functions are loaded only if required.
When you use a floating-point type specifier in the
format string of a call to a function in the printf or
scanf family, you must specify a floating-point value
or a pointer to a floating-point value in the argument
list to tell the compiler that floating-point support
is required.