I have a user defined data type it has 5 strings and 6 ints that make up the object. this object is one in a vector. how do you change one piece of that element?? not a piece of the vector but of one element?
structCDATA
{
string szName;
int iAge;
}cTemp;
vector<CDATA> vecUserData;
cTemp.szName="Aceix";
cTemp.iAge=101;
vecUserData.push_back();
cout<<vecUserData[0].szName;
vecUserData[0].iAge=102;
cout<<"My birth time has just passed and 1 yr has been added to my age.";