I stand corrected..... however if this is c++ then surely the message should be posted in the c++ forum??
So are you saying that
scanf("%f""%f", &var1, &var2);
is accepted? ok... just tested and it is, but still, it seems like bad practice to put this...
therefore the code should be (if C ):
struct point2D pa,pb;
printf("Please enter the first point: ");
scanf("%f" "%f", &pa.x, &pa.y);
printf("Please enter the second point: ");