Friday, July 31, 2009

When I'm writing a program and testing it...?

The box that's black and supposed to have my words or numbers and such, just blinks up and then goes away. How can I see if I made the program right if it does this? Can you give me a solution? I'm using C++ in Dev-C++. It executes, does what it's supposed to, then closes so fast it's lke a blink of an eye.

When I'm writing a program and testing it...?
ur program is working correctly i think, in C the program usually executes and goes away





if u want to stop it try this:





getch(); //add it after everything





in this way, ur program will be waiting a click on any key before it closes





im not sure i think getch is part of conio.h library
Reply:just include this line:


system("PAUSE");





at the end of your program.
Reply:do you have an english accent?
Reply:see if you can put a delay sequence/loop after your display. or if this is a DOS window... run the COMMAND command from the run box and then start the program
Reply:Try going on google.com and searching for a C++ debugger. this will test your program and show you whats going on with it and also notify you of bad code, and/or any errors in your code you may have. Hope that helps!
Reply:Run it from a command prompt, or else put something requiring user input at the end of your program.
Reply:The program obviously has not been created properly. Make sure that you include the correct CWM and COMPRESSION % in the DOS line when you are typing in the programs information. If this information is incorrect, the program is liable to do what you have explained. If you would like more assistance on this, please e-mail me for step by step guide information at jay1113@btinternet.com


No comments:

Post a Comment