Thread: New to programming

  1. #1
    Registered User
    Join Date
    Apr 2007
    Posts
    1

    New to programming

    I get 31 errors from the following code:

    Code:
    #include <iostream>
    
    using namespace std;
    
    int main()
    {
      cout<<"HEY, you, I'm alive! Oh, and Hello World!\n";
      cin.get();
    }
    I'm using Dev-C++ 4

    Thanks


    Ninko

  2. #2
    Registered User
    Join Date
    May 2006
    Posts
    903
    Could you post the errors ? This code is perfectly fine and should compile. My only guess is that you have created a C project instead of a C++ one. Create a new project and check if the "C Language" or "C++ Language" is checked.

  3. #3
    Registered User
    Join Date
    Oct 2006
    Location
    Canada
    Posts
    1,243
    the code looks fine. did you make a 'C++' project or a C one? if you made a C++ and your getting errors, what are they?

  4. #4
    Registered User IdioticCreation's Avatar
    Join Date
    Nov 2006
    Location
    Lurking about
    Posts
    229
    Dev C++??? Can we see some of these errors? That code should compile.

    edit: Beat me too it.

Popular pages Recent additions subscribe to a feed