09-24-2010, 04:54 AM
(08-30-2010, 06:13 PM)Marda Wrote: tried dev c++ but dosen't compile maybe its my code
Code:#include <iostream>
using namespace std;
int main ()
{
cout << "Hello World!";
cout << "i'm a C++ program";
return 0;
}
but nothing happens somethings flashes on my screen yer BTW i'm very new to all this
i also go run and compile on Dev c++
Dev C++ works fine.
Its your code
Looking at your code you have no stop in it.. so it runs though then ends. Any compiler would make it do that.
Put cin.get() or something like that before return 0;
That will end it
Dev c++