is there any way to have a string used as the name of a variable?
ie
not sure if this is possible, not even sure if it would be good programming to do so...mostly just wondering if that is possible...Code:vector<Names> Male(10);
vector<Names> Female(10);
Male[3].name="John";
string hold = "Male";
cout<<hold[3].name
thx