Thank you
--- In [email protected], "Brett McCoy" <[EMAIL PROTECTED]> wrote:
>
> On Sun, May 11, 2008 at 7:26 AM, bo <[EMAIL PROTECTED]> wrote:
> 
> > Hello I just started a class on programming. The firs program was 
to
> > write "Hello World". I downloaded the compiler "Magic C." When I 
ran
> > the compiler it said "variable cout not found". Here is the code I
> > typed. This is the way it was shown in the example in the book.
> >
> > #include <io.h>
> 
> There is no header io.h, this should be <iostream> (note there is 
no .h)
> 
> >
> > int main ()
> > {
> >  cout << "Hello World!";
> 
> std::cout is what you want to use here. Alternatively, before main
(),
> add 'using namespace std;' and you can just use cout instead of
> std::cout.
> 
> >  return 0;
> > }
> >
> > I assume I missed something.
> 
> What class are you taking? What book are they teaching out of? It
> seems they are teaching an outdated form of C++.
> 
> -- Brett
> ------------------------------------------------------------
> "In the rhythm of music a secret is hidden;
>  If I were to divulge it, it would overturn the world."
>  -- Jelaleddin Rumi
>


Reply via email to