Bloodshed Dev-C++ - Trouble !!!!!
Results 1 to 6 of 6

Thread: Bloodshed Dev-C++ - Trouble !!!!!

  1. #1
    Junior Member
    Join Date
    Feb 2003
    Posts
    11

    Arrow 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 ?????
    Lord Optix

  2. #2
    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 =]

  3. #3
    Junior Member
    Join Date
    Feb 2003
    Posts
    11
    Sevari,

    You are my savior.
    Lord Optix

  4. #4
    Senior Member
    Join Date
    Apr 2002
    Posts
    634
    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--

  5. #5
    Senior Member
    Join Date
    Nov 2001
    Posts
    4,786
    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.’”

  6. #6
    Senior Member
    Join Date
    Jun 2002
    Posts
    394
    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
  •