Thread: Help
View Single Post
  #5 (permalink)  
Old March 29th, 2010, 08:32 PM
sh_erfan sh_erfan is offline
Authorized User
Points: 100, Level: 1
Points: 100, Level: 1 Points: 100, Level: 1 Points: 100, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2009
Posts: 26
Thanks: 1
Thanked 1 Time in 1 Post
Default

you should include <conio.h> header file.
this header has a function getch(). you can use it before return statements in all programs you write in order to see the result on screen until a key is pressed.
Code:
#include <conio.h>
.
.
.
main()
{
    //your code goes here

getch();
return 0;
}
I sure am this will work if I got your question correctly !!!!
Reply With Quote