Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
c++ free compiler?
#9
(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 Tongue

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 Smile

Dev c++
[Image: blanktemplate.png]
Reply


Messages In This Thread
c++ free compiler? - by Marda - 08-29-2010, 06:36 PM
RE: c++ free compiler? - by Iarkey - 08-29-2010, 06:41 PM
RE: c++ free compiler? - by Eminent - 08-30-2010, 01:31 PM
RE: c++ free compiler? - by Marda - 08-30-2010, 06:13 PM
RE: c++ free compiler? - by mmki - 09-24-2010, 04:54 AM
RE: c++ free compiler? - by Eminent - 08-30-2010, 06:29 PM
RE: c++ free compiler? - by Buffy - 09-01-2010, 03:31 PM
RE: c++ free compiler? - by wchar_t - 09-05-2010, 12:11 PM
RE: c++ free compiler? - by Secret - 09-21-2010, 09:55 PM
RE: c++ free compiler? - by PurpleHaze - 09-26-2010, 06:15 AM
RE: c++ free compiler? - by The White Tiger - 09-26-2010, 06:22 AM
RE: c++ free compiler? - by Technology - 09-26-2010, 10:44 AM
RE: c++ free compiler? - by Closed - 10-01-2010, 09:00 AM
RE: c++ free compiler? - by Shirosaki. - 10-03-2010, 07:32 AM
RE: c++ free compiler? - by Disease - 10-06-2010, 09:04 PM
RE: c++ free compiler? - by Xzotic - 10-29-2010, 02:46 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Building a Compiler ? prince76 10 5,784 02-21-2012, 09:17 AM
Last Post: AceInfinity
  Code Block compiler: "No compiler found" Fix Inventor 7 3,904 09-04-2011, 06:12 AM
Last Post: Orgy
  Need a new compiler Richard Runz 2 1,035 08-07-2011, 11:17 AM
Last Post: [Dr.House]
  C++ Compiler Impuhlsive 2 1,416 05-09-2011, 06:24 AM
Last Post: cfillion

Forum Jump:


Users browsing this thread: 14 Guest(s)