|
-
February 14th, 2003, 11:08 PM
#1
Junior Member
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, 11:12 PM
#2
Member
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, 11:21 PM
#3
Junior Member
Sevari,
You are my savior.
-
February 14th, 2003, 11:28 PM
#4
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.
KC
Life is boring. Play NetHack... --more--

-
February 15th, 2003, 01:01 AM
#5
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, 01:26 AM
#6
i like the system("pause") call, but
Code:
#include <conio.h> for windars, yarhar.
cout << "Press any key if you would like to do what is next" << endl ;
_getch() ;
has the same effect with the bonus of having your own message.
_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!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|