C++ exit program

Discussion in 'Programming General' started by manson_52, Oct 12, 2008.

C++ exit program
  1. Unread #1 - Oct 12, 2008 at 9:15 PM
  2. manson_52
    Joined:
    Aug 19, 2007
    Posts:
    18
    Referrals:
    0
    Sythe Gold:
    0

    manson_52 Newcomer

    C++ exit program

    i need a piece of code for C++ so that when you enter a specific number, eg "999" the program closes as soon as you enter the number

    any ideas?
     
  3. Unread #2 - Oct 12, 2008 at 11:36 PM
  4. Govind
    Joined:
    Apr 22, 2005
    Posts:
    7,825
    Referrals:
    13
    Sythe Gold:
    23
    Prove it! Trole Tier 1 Prizebox Tortoise Penis Le Monkey UWotM8? Wait, do you not have an Archer rank? Potamus

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    C++ exit program

    if(n==999)
    {
    exit(0);
    }
     
  5. Unread #3 - Oct 13, 2008 at 3:44 PM
  6. manson_52
    Joined:
    Aug 19, 2007
    Posts:
    18
    Referrals:
    0
    Sythe Gold:
    0

    manson_52 Newcomer

    C++ exit program

    thanks
     
  7. Unread #4 - Oct 13, 2008 at 9:46 PM
  8. exapto
    Joined:
    Oct 10, 2008
    Posts:
    645
    Referrals:
    0
    Sythe Gold:
    123
    Vouch Thread:
    Click Here
    Discord Unique ID:
    716746285151027321
    Discord Username:
    exapto#2360
    Homosex

    exapto #1 OSRS Magic Training Service
    $50 USD Donor New

    C++ exit program

    Man, first Swan got to a new post 1st, now SMR! WHAT IS THIS WORLD COMING TO!

    BTW, you could just make it go to "Press any Key to Continue", just make it end right after the user inputs any #......Not much help im guessing....lol
     
< GetPage in C++? | .bat help >

Users viewing this thread
1 guest


 
 
Adblock breaks this site