Results 1 to 3 of 3

Thread: Making the console stay after running program

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2002
    Posts
    2

    Making the console stay after running program

    Hey all. I was just wondering how to make the console remain after your console app has finished running... Mine closes like the second that the program runs.

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Code:
    #include <stdio.h>
    #include <stdlib.h>
    
    int main()
    {
        printf("Hello World!\n");
    
        system("pause");  
    
        return 0;
    }
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2002
    Posts
    2
    Thank you!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width