//********************************************************************** //namespace locate names avoid to comflict with them //they locate visibility area //********************************************************************** #include #include using namespace std; namespace custom{ int id; class customid{ char name[10]; public: customid(){} void setname(char na[]){ strcpy(name,na); } void showcustom(){ cout<>id; custom::id=id; cout<<"Insert custom name\n"; cin>>name; //no need new "::" it's enough the object declaration for all members co.setname(name); cout<<"custom id and name are....\n"; co.showcustom(); custom::print(); return 0; }