|
-
Apr 17th, 2002, 09:16 AM
#1
Thread Starter
Lively Member
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?
-
Apr 17th, 2002, 10:26 AM
#2
Hyperactive Member
"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.
-
Apr 21st, 2002, 09:16 AM
#3
i think you have to include a couple of lines near the end of main :
Code:
printf("Press any key to continue\n");
getch();
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|