|
From: Rossi G. <Gio...@el...> - 2003-03-26 12:30:42
|
Hallo Dario Greco.
This code is C++
#include <iostream>
using namespace std;
int main ()
{
cout << "hello world";
return 0;
}
To compile when create a new project choose C++, not C as language.
This is may be the problem.
> -----Original Message-----
> From: Dario Greco [SMTP:gr...@bi...]
> Sent: Wednesday, March 26, 2003 1:13 PM
> To: dev...@li...
> Subject: [Dev-C++] newbie problems
>
> hi to all.
> i'm a newbie of c++.
> i ve installed dev-c on a win 2000 pro system.
> i wrote a simple program as "hello world" as this:
>
> #include <iostream>
> using namespace std;
> int main ()
> {
> cout << "hello world";
> return 0;
> }
>
> but when i compile this program, dev-c gives me 2 errors:
> 1) iostream is no such file or directory;
> 2) cout undeclared in first use.
>
> i've tried to use the old standard:
>
> #include <iostream.h>
> ...etc...
>
> but the result is the same.
>
> which is the problem?
> the same response is gived using gcc under linux red hat 7.3.
> thankyou for help.
>
> d
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by:
> The Definitive IT and Networking Event. Be There!
> NetWorld+Interop Las Vegas 2003 -- Register today!
> http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|