In the C ++ standard, cout is defined in the std , so you need to either say std::cout or put
using namespace std;
in your code to get to it.
However, this is not always the case, and in the past cout was only in the global namespace (or, later, in the global and std ). So I came to the conclusion that your classes used the older C ++ compiler.
Matthew Walton Jun 08 2018-12-12T00: 00Z
source share