[plug] g++
Derek Fountain
derekfountain at yahoo.co.uk
Mon Apr 21 22:38:45 WST 2003
> Here is ever simple hello world that I ahve which does not work:
>
> #include<iostream>
>
> int main()
> {
> cout<<"Hello World!!\n\n";
>
> return(0);
> }
You need to declare the namespace you're using, either explicitly for the
point where it's required, or implicitly for the whole source:
#include <iostream>
int main()
{
std::cout<<"Hello World!!\n\n";
return(0);
}
--
"...our desktop is falling behind stability-wise and feature wise to KDE
...when I went to Mexico in December to the facility where we launched gnome,
they had all switched to KDE3." - Miguel de Icaza, March 2003
More information about the plug
mailing list