Yeah, that's what Elysia's solution is getting at. I do not quite understand if RahulDhanpat is having problems figuring out how to run the program, or having problems seeing the output of the program when run.Quote:
Perhaps your CMD window is flashing up and going away too fast for you to see it.
getch() is non-standard though, I believe getchar() is what should be used for C.Quote:
Common ways are add "getch()" at the end of of main.
I agree, and I note that it is available at zero price.Quote:
And if you can, I do suggest you try Visual Studio 2008 Express. VC6 is old, and age is making it bad.
EDIT:
Not with a #include "stdafx.h". So the OP either ends up either adding the line everytime he/she gets an example to learn from, or simply disables the feature until he/she actually wants to use it.Quote:
Even using PCH, it will still compile fine with other compilers.

