Why would you write :: with no preceding namespace? (e.g. ::atof) [duplicate]
It says use the global version, not one declared in local scope. So if someone’s declared an atof in your class, this’ll be sure to use the global one. Have a look at Wikipedia on this subject: #include <iostream> using namespace std; int n = 12; // A global variable int main() { int n … Read more