Hi, I am making a simple program that asks the user to input 2d points and the program will perform various functions.
This is what I have so far
When i enter the first point like so 5 32Code:#include <stdio.h> struct point2D { float x; float y; }; int main() { point2D pa,pb; printf("Please enter the first point: "); scanf("%f" "%f", &pa.x, &pa.y); printf("Please enter the second point: "); return(0); }
i get a runtime error and it says floating point is not loaded.
Am I using the structure wrong or is it the scanf?
Thanks![]()



LinkBack URL
About LinkBacks




But again, that has nothing to do with their floating point problem.