Im running windows xp and I downloaded dev-c++ when i go to compile a program it succesfully does it but when i go to run it the black screen only pops up for a second and then dissapears how do i fix that??
please help
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Your program ran to completion so the OS closed the program's windows as it always does in such circumstances, but nonetheless it always seems to surprise people when it happens to their own programs.
Make your program 'interactive' - i.e. make it wait until you choose to terminate it. By whatever means, that suggested above is just one of them.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Im running windows xp and I downloaded dev-c++ when i go to compile a program it succesfully does it but when i go to run it the black screen only pops up for a second and then dissapears how do i fix that??
please help
At the end of your program you have to put system("pause");
Please note that this question, and many more, are answered in the thread in this forum titled "Please Read Before Posting a Question" - check it out.
Wayne
Your program ran to completion so the OS closed the program's windows as it always does in such circumstances, but nonetheless it always seems to surprise people when it happens to their own programs.
Make your program 'interactive' - i.e. make it wait until you choose to terminate it. By whatever means, that suggested above is just one of them.