Adblock breaks this site

Dev-C++ help

Discussion in 'Programming General' started by Underground, Jun 24, 2007.

  1. Underground

    Underground Guest

    Referrals:
    0
    Dev-C++ help

    ok i have
    Code:
    #include <iostream.h>
    #include <stdlib.h>
    
    int main()
    {
    
    cout << "Hello, Matey!\n";
    system("PAUSE");
    return 0;
    }
    But when i try to run it gives me a warning saying "source file not compiled", and i dont know how to compile it.

    Screenshot: [​IMG]
     
  2. slashshot007

    slashshot007 Active Member

    Joined:
    May 6, 2006
    Posts:
    164
    Referrals:
    0
    Sythe Gold:
    0
    Dev-C++ help

    err in that screenshot u have an extra bracket in there, thus being the highlighted one in blue. get rid of it.
     
  3. eagles358

    eagles358 Guest

    Referrals:
    0
    Dev-C++ help

    execute -> compile

    or ctrl+F9
     
  4. eagles358

    eagles358 Guest

    Referrals:
    0
    Dev-C++ help

    and it will probably give you an error, delete the bracket
     
  5. Underground

    Underground Guest

    Referrals:
    0
    Dev-C++ help

    Thanks but i got it working....now my problem is i dont know C++:/
     
  6. eagles358

    eagles358 Guest

    Referrals:
    0
    Dev-C++ help

    haha well there are some good websites for learning c++, google c++ tutorials.
     
  7. The End

    The End Forum Addict

    Joined:
    Dec 10, 2005
    Posts:
    397
    Referrals:
    0
    Sythe Gold:
    0
    Dev-C++ help

    lets see i think iostream.h is a c library try

    #include <iostream>
    using namespace std;

    because thats the c++ version i think
     
< Celsius and fahrenheit converter. | How do I load RuneScape? >


 
 
Adblock breaks this site