C++ help

I recently decidided to learn c++ :thumb:
but I’m fed up of searching google for a free C++ compiler download and getting results like “free c++ compiler only £175!”
Can anyone recomend a FREE C++ compiler for me?

thanks, matt xx :wink:

http://gcc.gnu.org/

errrr… from the stuff on that site it looks like I have to download about 1000000000000000 programs just to get it working :puzzle:
Is there any simpler options? :look:

EDIT - nevermind I got one

OK so in c++, which I have a compiler for now, I wrote the following source code:


#include <iostream>
using namespace std;

int main ()
{
    cout<<"Hello ";
    cout<<"I'm a c++ program made by... ";
    cout<<"the amazing Matt!";
    return 0;
}

when I run the program somthing flashes on my screen, I’m not sure if its the program or not but whatever it is it flashes on and off to fast to see

I just want to actualy see the program so that I know it has worked :hat:

can anyone help?

what compiler are you using? The code you have there checks out (though you could throw in a couple endl’s there) and should work properly.

Bloodshed Dev-C++

^thats the best compiler out there. My bro programs with OpenGL and stuff and loves it to death.

Yea.

#include <iostream>
using namespace std;

int main ()
{
    char hello;
    cout<<"Hello ";
    cout<<"I'm a c++ program made by... ";
    cout<<"the amazing Matt!";
    cin>>hello; //asks for input. you may have to define the varaible hello.
    return 0;
}

wow, its been so long sense i’ve even looked at C++;

oh … wow :slight_smile:

me too, ive been learning c++ recently as well and i Use dev C++. I have had it pop up like that before and for me all i had to do was hit f9 because it compiles are runs it.

If your on Windows you may want to consider Visual C++ Express Edition. It compiles smaller binary files.