need a tip

  1. #1
    Pikachu's Flea Collar Reputation: 10

    Join Date
    Apr 2010
    Posts
    56
    Rep Power
    5

    Default need a tip

    Hello! I was working on my program (im still a newbie) and I got a problem. My program starts, shows the information very very fast and closes itself. I know about command "cin.get()" but it doesn't work somewhy (just throws a lot of errors). So any command which would make my program last longer?

  2. #2
    Arri's Animal Reputation: 87

    Join Date
    Mar 2009
    Posts
    3,106
    Rep Power
    8

    Default

    return 0; ?

    Edit: I just noticed... cin.get() has no semicolon at the end. You need to end all functions with a semicolon.
    Last edited by Mime Taxidermy; 05-30-2010 at 03:32 AM.

Posting Permissions

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