Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_pre.php on line 387

Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_pre.php on line 387

Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_seo.php on line 337

Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_seo.php on line 339

Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_seo.php on line 341

Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_seo.php on line 343
c++ error

Results 1 to 2 of 2

Thread: c++ error

  1. #1
    User Admin rttnPIG's Avatar
    Join Date
    Jun 2007
    Posts
    3,731

    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
    Coders siLenCer's Avatar
    Join Date
    May 2007
    Posts
    443

    Re: c++ error

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

Similar Threads

  1. Error
    By BlackGod in forum D3D
    Replies: 5
    Last Post: November 19th, 2008, 17:02
  2. Error?
    By Robbie-A-90-08 in forum Combat Arms Cheats
    Replies: 3
    Last Post: September 14th, 2008, 10:33
  3. Error? Please help
    By Agito in forum Combat Arms Cheats
    Replies: 6
    Last Post: August 27th, 2008, 09:13
  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
  •