Consider this :-
namespace PPP
{
CMyclass {
....
};
int iPPP;
}
int CMytest::ExampleNameSpace( PPP:: CMyclass &oTest, int p)
{
return iPPP;
}
it takes iPPP from the namespace of the PPP , firstchecks in the scope of CMytest and then in the scope of the std <\b> and then in the scope of the function argument scope .
Popularly known as namelook up rule
Wednesday, July 26, 2006
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment