Try this:
#include <iostream>
using namespace std;
int main()
{
cout << "Hej verden!\n";
return 0;
}
OR
#include <iostream>
int main()
{
std::cout << "Hej verden!\n";
return 0;
}
Mohammed
----- Original Message -----
From: "Daniel Glenfield" <sp...@ho...>
To: <ti...@td...>; <dev...@li...>
Sent: Saturday, November 09, 2002 11:38 AM
Subject: Re: [Dev-C++] new
> #include <iostream>
>
> int main()
> {
> using namespace std;
> std::cout<<"Hej verden!\n";
> return 0;
> }
>
>
> if you use iostream without the .h extention you need the using namespace
> std; bit.
>
> post error messages also in future, they will help us get a quick response
> to you!
>
> Daniel
>
>
>
>
>
> >From: "Tina" <ti...@td...>
> >To: <dev...@li...>
> >Subject: [Dev-C++] new
> >Date: Fri, 9 Nov 2001 18:33:22 +0100
> >
> >Hi
> >
> >Im new on the list, and in programming, i have tryed a tut but i can´t
> >compile it, when i hit compile button, it just says no errors and no
> >outputs.
> >
> >What do i do wrong? any ideas?
> >
> >Tina
> >
> >
> >
> >
> >
> >
> >-------------------------------------------------------
> >This sf.net email is sponsored by:ThinkGeek
> >Welcome to geek heaven.
> >http://thinkgeek.com/sf
> >_______________________________________________
> >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
>
>
> _________________________________________________________________
> STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> 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
|