Results 1 to 4 of 4

Threaded View

  1. #1
    £X¢¤lĪbūr.'s Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    47
    Reputation
    10
    Thanks
    2
    My Mood
    Psychedelic

    Dos window auto-close

    I just started reading a book for C++ and have coded Hello World

    Code:
    #include <iostream.h>
    
    int main()
    {
         cout << "Hello World!\n";
         return 0;
    }
    So I compile it with Dev-C++ and run it, but my dos window flash closes upon executing the script.

    Windows Vista 32b (your standard PC)

    I can execute it through this process, but it is very lengthy and redundant:

    target of CMD.exe shortcut - C:\Windows\System32\cmd.exe /k "C:\dev-cpp\library\untitled1.exe"
    Last edited by £X¢¤lĪbūr.; 04-03-2011 at 01:17 AM.