Tuesday, July 14, 2009

Microsoft Visual C++ 2005 Express Edition debug problem?

when i do the debug in the program the cmd appears quickly then close.


to know the code is :


#include %26lt;stdio.h%26gt;


int main ()


{


printf ("welcom to c ");


return 0;


}

Microsoft Visual C++ 2005 Express Edition debug problem?
It appears quickly and closes because that's the end of your program. After your printf(), pause for a console input (like Console.ReadLine() or cin %26gt;%26gt;). That will force your user to hit enter to end the program.
Reply:Add the function 'getch()' at the end to cause it to wait for you to press a key.
Reply:Your program is working fine keep on adding to it..


why using Standard (Stdio) not (iostream)


No comments:

Post a Comment