Completely new to C++, but have done some work in C. Have just seen the Hello, World example:
#include <iostream>
int main() {
std::cout << "Hello, World!" << std::endl;
return 0;
}
My question is why we must specify that cout is from the standard library, when I have already included the declarations for cout from the iostream header file?
I suspect that it's so that if we had another header file, say myFirstHeader.h, which also had a cout identifier, it would avoid ambiguity about which cout is being used?
Appreciate any help or redirection.