Tuesday, July 28, 2009

I use dev c++ compiler...after runnin the program..i?

console window appears...i can enter the inputs in console window...but it disapears aftr the input s entered...am not able to view the result of d program..how can i view the result?

I use dev c++ compiler...after runnin the program..i?
This works in C but I'm not sure about C++...





You have to add a





getchar();


or a


getch();





before the return line. This will prevent it from closing immediately after.


No comments:

Post a Comment