title: trouble with passing a string pointer and then checking size in a constructor/method
body: <p>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)</p>
  
  <pre><code>MyClass::MyClass(string* newName)
  {
    if (newName.length() &gt; maxNameLength) //maxNameLength = 50
    {  
       //do stuff
    }
  }
  </code></pre>