I have a newbie problem, I am very new to C programming and am studying it as part of a degree course in the uk. We have to use C specifically not C# or C++.
I am currently running Bloodshed Dev-C++ V4.9.9.2 on Windows XP Professional Version 2002 Service pack 3 V.3264
My problem is this;
Having written and compiled a simple program;
Code:
#include <stdio.h>
int main(void)
{ float x,y ;
printf(" Please input 2 integers\n");
scanf("%f %f", &x, &y);
printf("\nThe two integers are:\n %f %f\n",x, y);
system("PAUSE");
return 0;
}
Code:
#include <stdio.h>
int main(void)
{ float x,y ;
printf("Please input 2 integers\n");
scanf("%f %f", &x, &y);
printf("\nThe two integers are:\n%f %2f\n",x,y);
system("PAUSE");
return 0;
}
Closing out Dev-C++ and reopening the source file makes no difference, even rebooting my computer and then opening the source file again with Dev-C++ makes no difference, the executed program acts exactly as the original unedited program.
This is driving me nuts and causing my work to take 3-4 times as long as it should.
Does anyone have any idea where i am going wrong adn what i need to do to stop this happening?
Thanks TFLNemesis
