The examples are correct, and will work in most compilers, but I just feel that writing: std::cout << (and std::endl etc.) is more technically correct.

It's no big deal at the end of the day, just a style that I follow when programming.