I am trying to learn C++. I have Turbo C++ 3.0 installed on a win98se machine. Whenever I try to create an arrat of floats and then scanf the values, everything works fine. But when I use an a float in a structure and then create an array of structures and try to scanf the values, I get the error msg "Abnormal program termination. floating point formats not linked". Here is the piece of code:
to overcome i have to declare a separate float r and use this r in scanf and then transfer the value captured to the structure element.
int n, i = 0;
printf("\nTo STOP enter END for flag\n");
scanf("%f", &circle[i].radius); //THIS WHERE THE ERROR OCCURS
can anyone please throw some light on this?