I'm still learning about strings, but I'm trying to use them more often. How could I get something like this to work? I'm not even sure where to start (yes, this is an object. I'm also learning about these atm for an assignment)
MyClass::MyClass(string* newName)
{
  if (newName.length() > maxNameLength) //maxNameLength = 50
  {  
     //do stuff
  }
}
 
     
    