Borland c++ and cin.get doesnt work!!

Hey guys, i was coding in codeblocks and i was trying to compile my simple hello world program with the borland compiler. The thing is i can build the program but when i run it it comes up with "*projectname*.exe has stopped working". I Know i can use system pause or something but i just want to use cin.get! why cant i, heres my code! oh and i'm using the mingw codeblocks


#include <iostream>

using namespace std;

int main()
{
cout << "Hello world!";
cout << endl;
cin.get();
return 0;
}
The code's OK. I recommend trying a different compiler.
I don't think OP know what a compiler is, in first post it contradicts itself:
was trying to compile my simple hello world program with the borland compiler


with

oh and i'm using the mingw codeblocks
yeah, there must be something wrong with your codeblock cause i just ran the code in mine and it worked. reinstall it or download the biggest version you can find in the web, the one that comes with everything, besides remember to use the default compiler when you are going to create the project, the one that says GNU.... i cant remember now.
Topic archived. No new replies allowed.