-
Dev c++ compiler problem
i'm using dev c++ compiler, I was just trying out some c code, just to display text on a screen, the compiler doesn't show this program. This is my code......
/* basic program */
#include <stdio.h>
main()
{
printf ("text to be displayed");
}
any ideas?
-
"the compiler doesn't show this program"
Not sure what you are complaing about. Is the program compiling, and you are getting no output? If so, try adding a \n to the end of your string.
Possibly also alter main so that it returns an Int.
-
i think you have to include a couple of lines near the end of main :
Code:
printf("Press any key to continue\n");
getch();