Bulls and Cows Progress

Namespace Challenge

Well here goes :grimacing:,

The downfall to namespaces is that if one or more different libraries or namespaces contain a function (like std) the function’s result may be a different output for every library/namespace. This leads to the computer not knowing which function to use, and, as a result, not knowing what to output. Maybe an example would be better:

#include <library_A> #include <library_B> using namespace std; int main() { cout << "Hello World!\n" << endl; return 0;

If library A’s std function results in, for example, 1 and library B’s std function results in 2 then the computer wouldn’t know what to output: 1 or 2? Thus, this is the namespace clash (I think)

Any feedback is appreciated! :slight_smile:

Input Challenge

Nothing special :frowning:, but it works!

Privacy & Terms