Aimbots.net - The N°1 Community For All Your Gaming Needs.
+ Reply to Thread + Post New Thread
Results 1 to 2 of 2

Thread: c++ error
  • Share This Thread!
    • Share on Facebook
    1. #1
      User Admin rttnpig is on a distinguished road rttnpig's Avatar
      Join Date
      Jun 2007
      Posts
      3,567
      Thanks
      31
      Thanked 62 Times in 47 Posts

      Default c++ error

      Code:
      // Listing 4.3 - demonstrates use of
      // prefix and postfix increment and
      // decrement operators
      #include <iostream.h>
      int main()
      {
          int myAge = 39;      // initialize two integers
          int yourAge = 39;
          cout << "I am: " << myAge << " years old.\n";
          cout << "You are: " << yourAge << " years old\n";
          myAge++;         // postfix increment
          ++yourAge;       // prefix increment
          cout << "One year passes...\n";
          cout << "I am: " << myAge << " years old.\n";
          cout << "You are: " << yourAge << " years old\n";
          cout << "Another year passes\n";
          cout << "I am: " << myAge++ << " years old.\n";
          cout << "You are: " << ++yourAge << " years old\n";
          cout << "Let's print it again.\n";
          cout << "I am: " << myAge << " years old.\n";
          cout << "You are: " << yourAge << " years old\n";
            return 0;
      }
      
      quite easy thing, but wen i compile and execute it it apears msdos and disapears without me letin see the program. like if its a popup, disapeares wen i press tje ocpm-

      is there a way of pausing it so i can see it?

      thanks

    2. #2
      Coder siLenCer is on a distinguished road siLenCer's Avatar
      Join Date
      May 2007
      Posts
      445
      Thanks
      0
      Thanked 1 Time in 1 Post

      Default Re: c++ error

      system("PAUSE"); before you return...

    Similar Threads

    1. Error
      By Natare in forum Call of Duty 2 Cheats
      Replies: 2
      Last Post: April 9th, 2008, 03:12
    2. UI Error
      By M. Cosby in forum ETH32
      Replies: 6
      Last Post: December 10th, 2007, 23:10
    3. ET error
      By Cha0s001 in forum Software
      Replies: 1
      Last Post: December 10th, 2007, 03:12
    4. [ERROR] Enemy Territory error
      By lilandonaki in forum Enemy Territory Cheats
      Replies: 3
      Last Post: November 8th, 2007, 09:49
    5. ET error- recently new error that i have encountered
      By JohnnyD in forum Enemy Territory Cheats
      Replies: 10
      Last Post: July 10th, 2007, 01:22

    Bookmarks

    Posting Permissions

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