Creating Hello World Program

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Everyone,

I am sorry if this has been posted somewhere else, but after trying to find
this post for over an hour I have given up searching. My problem is with
this simple program:

----------------------------------------------------Beginning of
Code----------------------------------------------------------
#include <iostream>
using namespace std;

int main()
{
       cout << "Hello World\n";
       return 0;
}

------------------------------------------------------Ending of
Code-----------------------------------------------------------

I keep getting error messages about unrecognized use of std::cout, which
seems like a terrible and misleading bug, because code block seems to
recognize cout. When I type the first three letters of cout (cou) it
suggests the command "cout" so clearly it recognizes it. Plus, I tested to
see if it would suggest cout if I did not include iostream, which it
doesn't.

So how can I get rid of this error message? And why is this information not
available on GCC's main page? Not having this information available is like
having kinder garden teach how to multiple and not teach how to add.
-- 
View this message in context: http://old.nabble.com/Creating-Hello-World-Program-tp33763655p33763655.html
Sent from the gcc - Help mailing list archive at Nabble.com.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux