Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

program not displaying on screen

shaieenshaieen Member Posts: 20
my program already has 0 errors and 0warnings. my problem is its not displaying on screen. what codes should i add?

getch? clrscr?

i don't know how they really function though.

Comments

  • LundinLundin Member Posts: 3,711
    At the bottom of the program, add getchar() from stdio.h.

    Avoid using getch() since it isn't standard C and will not work on most compilers. Avoid using system("PAUSE") since it is Windows-specific.

    clrscr() clears the screen. It is a non-standard function and will not work on most compilers.
Sign In or Register to comment.