Re: [Dev-C++] can't compile "hello world"
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: ymc014 <ym...@ym...> - 2005-06-14 10:04:27
|
Try changing ewndl to endl,remove semi-colon after "hello world" and =
replace with << like this:
# include <iostream>
# include <cstdlib> //added if you want to see your output on =
the screen, it appears very very
// quickly then disappear just as =
quick if you do not add this one.This is
// the library for the "system" =
command(see below).
using namespace std;
int main(){
cout << "hello world" << endl;
system("PAUSE"); //added if you want to see your output on the =
screen
return 0; // don't forget this one
}
=20
----- Original Message -----=20
From: MATTHEW CHEESMAN=20
To: dev...@li...=20
Sent: Tuesday, June 14, 2005 4:22 AM
Subject: [Dev-C++] can't compile "hello world"
hi,
i'm a beginner when trying to compilew "hello world" the standard =
program for beginners after typing in#include<iostream>
using namespace std;
int main( )
{
cout<<"hello world";ewndl;
}
i got the following message from the compiler : in function int main
statement cannot resolve address of over loaded function
can anyone advise or explain to a beginner what i"m doing wrong and =
why. Oh by the way i'm using version 4.9.9.2 of dev cpp with windows xp
from matt
e.mail me at mr matt che...@bl...=20
(the mrmatt bit should be included in the e.mail address
|