The key name is the name that defines the scope. Consider the following sample program, cout and endl are qualified names:
#include <iostream> int main() { std::cout<<"Hello world!"<<std::endl; return 0; }
Note that using cout and endl started with std:: . They make them Qualified Names .
If we brought cout and endl to scope using a declaration or directive * (for example, using namespace std; ) and used only cout and endl on their own, they would be unqualified names because they lack std:: .
Alok Save Aug 31 '11 at 13:30 2011-08-31 13:30
source share