If I delete it all and type the example in I can't compile. Can someone fill me in. Clearly I need to leave these lines in. But why!? why don't these tutorials say that? I must be missing something. Should I be trying a different compiler to learn with?
One of the reasons your code won't compile, by the way, is because cout is part of a namespace called std, and outside of that namespace, it's undeclared. Here's a better explanation: http://cplusplus.com/doc/tutorial/program_structure/
Thanks guys! especially for all these fantastic links. I am capable of searching, but I was definately looking at old info. I guess I'll chuck out these old books.