J
john isaac
this statement causes a compilation error:
memberlist.name.push_back(newname);
cannot convert std::string to char.
memberlist is a vector...i is an integer that's interating in a
loop...name is part of a struct Profile defined as string name.
Vector<Profile>memberlist (memberlist is a vector of type profile)
Struct Profile
{
string name;
};
newname is being passed in through a function parameter...
editName(vector<Profile>&memberlist, newname)
does anyone know why it does this??
memberlist.name.push_back(newname);
cannot convert std::string to char.
memberlist is a vector...i is an integer that's interating in a
loop...name is part of a struct Profile defined as string name.
Vector<Profile>memberlist (memberlist is a vector of type profile)
Struct Profile
{
string name;
};
newname is being passed in through a function parameter...
editName(vector<Profile>&memberlist, newname)
does anyone know why it does this??