I fixed it, apparently the ebook I am learning from leaves out the "std::" from "std::cout", can you explain why?
I also made a typo in line 4, it should not have a semicolon, the ebook is correct there, that was my mistake.
Why does the ebook not show std then? Explain that.
I did not not put it there on purpose, the ebook did not state that I put it there, the way you say it is as if I did not put it there because I was too lazy to.
And I am supposed to know this? The ebook that I am learning from did not mention "using namespace std;" or even a simple "std::cout", that is why I had the problem in the first place, I did not not put it there on purpose as you are seemingly suggesting, the damn resource I am learning from did not make the "std::cout" apparent, it left "std::" out, I am just asking why it would do that, a simple error or otherwise I'd like to know so I can be confident in continuing using this resource that I am learning C++ from.
(And yes, I meant to say "not not", that wasn't a mistype).
Link to ebook\pdf: www.angelfire.com/art2/ebooks/teachyourselfcplusplusin21days.pdf
Seems to be good, has 772 pages, doesn't necessarily look like bullshit. Yes the title seems suspect, I am not sure I will really learn all of it (C++) it in 21 days, of course, only what is in the ebook.
It looks like the book is old, and the use of <iostream.h> with .h at the end suggest it's from before C++ was standardized which happened 1998 (17 years ago). That's why it differs somewhat from the C++ we use today.