struct Table
{
char* aTag;
char* bTag;
};
int main()
{
Table T1;
cout<<T1.aTag;
cout<<T1.bTag;
return 0;
}
This might be crazy but... i really need to know
is there any way to so that we can only write
cout<<aTag
cout<<bTag
instead of T1.aTag
like we do in namespace
by using namespace <something>
for a block.
Can in be done for pointers T1->aTag
.
I tried something but have to write each of them for different object...