![]() |
Can we see the output of program at dos prompt
hi everybody,
anybody can tell me the way , how can i check my 'c' program output at dos prompt plz. confirm this ASAP. thanks Amit |
Re: Can we see the output of program at dos prompt
What compiler you are using because running the program should show you the output
|
Re: Can we see the output of program at dos prompt
if u cannot see the output jus add a line in the end of the program
Code:
getch(); |
Re: Can we see the output of program at dos prompt
write the getch(); at the end of the program.
getch(); is used for get one character from the user. by doing that after execution of the program it will hold the screen and when you press any key then it will go to source code. |
Re: Can we see the output of program at dos prompt
It depends why you can't see the output already. Does the window appear briefly then disappear before you get a chance to look at it? If so prompting for input as the last thing is one solution; running the EXE from a command prompt opened at the right place is another.
|
Re: Can we see the output of program at dos prompt
Just a silly question. Are you aware of printf / cout functions to display output.
|
| All times are GMT +5.5. The time now is 12:13. |