February 14th, 2003, 10:08 PM
Bloodshed Dev-C++ - Trouble !!!!!
I must be stupid or something. I've tried several tutorials and they don't seem to be working. I type them in legit and compile and run them. All that happens is my dos prompt screen flashes before my eyes, I don't see any results.
Does anyone have a solution for this problem ?????
February 14th, 2003, 10:12 PM
Yes, Open the command prompt first...
Start-Run-cmd (or command in Windows 95,98,ME).
CD to your scripts directory and then execute it by typing this at the prompt.
nameofyopurscript then press [Enter]
Good luck =]
February 14th, 2003, 10:21 PM
You are my savior.
February 14th, 2003, 10:28 PM
In fact, your programs work correctly (or are been launched correctly), but when Windows open a CMD box for a program, it closes it when the program is finished.
If your program is something like a "printf("hello world");" program (a classical begining) or something without any interaction with the user, you will only view the box during the time needed to execute it.
The Sevari advice is good. You can also in an easier way perform a simple drag'n drop in a CMD box instead than a cd command.
Life is boring. Play NetHack... --more--
February 15th, 2003, 12:01 AM
or you could add a cin statement or system(pause) to the end of you code.
Bukhari:V3B48N826 “The Prophet said, ‘Isn’t the witness of a woman equal to half of that of a man?’ The women said, ‘Yes.’ He said, ‘This is because of the deficiency of a woman’s mind.’”
February 15th, 2003, 12:26 AM
i like the system("pause") call, but
has the same effect with the bonus of having your own message.
#include <conio.h> for windars, yarhar.
cout << "Press any key if you would like to do what is next" << endl ;
_getch() GETs a CHaracter from standard input.
_getche() the same but DOES echo to the standard output.
Hmm...theres something a little peculiar here. Oh i see what it is! the sentence is talking about itself! do you see that? what do you mean? sentences can\'t talk! No, but they REFER to things, and this one refers directly-unambigeously-unmistakably-to the very sentence which it is!