hi,
Code:
#include<stdio.h>
struct xyz
{
float foo[5];
float bar;
}*x[5];
void main()
{
scanf("%f",&x[0]->foo[0]);
}
When i try to compile the above code( using Turbo C++ 3.0 in 16-bit DOS), the program terminates with this message:
scanf: floating-point math package not linked
Abnormal program termination
To Quote from the manual, When using float datatypes, linking with the floating-point package is mandatory, Turbo C++ will automatically do this for you if you use float in your code
Then why this error and how am I supposed to fix it?
Thanks In Advance,
Sahil
P.S This is my first thread, hello to everyone over here