Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualBaneTrapper

Posted 03 December 2012 - 03:26 PM

OtherClass::setName(MyObject& whichObjectsNameToChange, std::string Name, WhichNameToPut)
{
whichObjectsNameToChange.name = WhichNameToPut;
}
Simple no?
or have each object have setName function

EDIT:
May downvoters explain why they disagree with set function?

#4BaneTrapper

Posted 03 December 2012 - 03:25 PM

OtherClass::setName(MyObject& whichObjectsNameToChange, std::string Name, WhichNameToPut)
{
whichObjectsNameToChange.name = WhichNameToPut;
}
Simple no?
or have each object have setName function

EDIT:
May downvoters explain why they disagree with set function?

#3BaneTrapper

Posted 03 December 2012 - 02:06 PM

OtherClass::setName(MyObject& whichObjectsNameToChange, std::string Name, WhichNameToPut)
{
whichObjectsNameToChange.name = WhichNameToPut;
}
Simple no?
or have each object have setName function

#2BaneTrapper

Posted 03 December 2012 - 02:04 PM

OtherClass::setName(MyObject whichObjectsNameToChange, std::string Name, WhichNameToPut)

#1BaneTrapper

Posted 03 December 2012 - 02:03 PM

setName(object, name)

PARTNERS