Dev-Cpp

This is a discussion on Dev-Cpp within the C++ Programming forums, part of the General Programming Boards category; I dont get it. Every program ive made so far in Dev-Cpp compiler always closes after I put an interger ...

  1. #1
    Registered User
    Join Date
    Aug 2003
    Posts
    12

    Unhappy Dev-Cpp

    I dont get it. Every program ive made so far in Dev-Cpp compiler always closes after I put an interger or a value.

    Code:
    #include <iostream.h>
    
    int main()
    {
      int age;
      cout<<"Please input your age: ";
      cin>>age;
      
      if(age<100)
      {
         cout<<"You are pretty young!";
      }
      else if(age==100)
      {
         cout<<"You are old";
      }
      else
      {
        cout<<"You are really old";
        
      }
      return 0;
    }
    This is the only compiler that I can understand, microsoft one is too annoying...
    Am I coding something wrong?

    Thanks,
    Gutrat

  2. #2
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  3. #3
    Registered User
    Join Date
    Aug 2003
    Posts
    12
    Oh thanks, I didnt know there was a section there. Thanks alot man.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. strange problem with dev cpp
    By henrychan22 in forum C++ Programming
    Replies: 8
    Last Post: 06-18-2006, 11:05 AM
  2. Replies: 2
    Last Post: 04-09-2006, 07:20 PM
  3. Multiple Cpp Files
    By w4ck0z in forum C++ Programming
    Replies: 5
    Last Post: 11-14-2005, 01:41 PM
  4. Linker error in Dev Cpp (DX)
    By C+noob in forum Game Programming
    Replies: 2
    Last Post: 08-15-2005, 03:13 AM
  5. dev cpp documentation
    By sanchezero in forum Game Programming
    Replies: 2
    Last Post: 06-18-2002, 02:32 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21