I'm just starting to program in C++, I have a little perl experience.
So far I don't have a problem understanding the code but as I using an oldish book (Stroustrup, 3rd Ed, 1997) some things seem to have changed (maybe). I'm trying to compile a hello world program -
---first.cpp:
#include <iostream>
int main()
{
std::cout<< "Hello, LQ!\n";
}
---
and I get -
---
$gcc first.cpp
first.cpp: In function `int main()':
first.cpp:5: `cout' undeclared (first use this function)
first.cpp:5: (Each undeclared identifier is reported only once for each
function it appears in.)
---
Where am I going wrong? Perhaps something more related to linux would help? Input is welcome.
Thanks,
Graham.