title: Error with string validation function
body: <p>Hey im trying to validate a string.  Basically what i want it to do is prevent the user from entering anything other than a string.  Here is my code:</p>
  
  <pre><code>**getString**
  
  string getString(string str)
  {
      string input;
      do
      {
          cout &lt;&lt; str.c_str() &lt;&lt; endl;
          cin &gt;&gt; input;
      }
      while(!isalpha(input));
      return input;
  }
  </code></pre>
  
  <p><strong>Errors</strong></p>
  
  <pre><code>Error   2   error LNK2019: unresolved external symbol "public: bool __thiscall Validator::getString(class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt;)" (?getString@Validator@@QAE_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "public: void __thiscall Player::information(void)" (?information@Player@@QAEXXZ)    C:\Users\Conor\Documents\College\DKIT - Year 2 - Repeat\DKIT - Year 2 - Semester 1 - Repeat\Games Programming\MaroonedCA2\MaroonedCA2\Player.obj    MaroonedCA2
  Error   3   error LNK1120: 1 unresolved externals   C:\Users\Conor\Documents\College\DKIT - Year 2 - Repeat\DKIT - Year 2 - Semester 1 - Repeat\Games Programming\MaroonedCA2\Debug\MaroonedCA2.exe MaroonedCA2
      4   IntelliSense: no suitable conversion function from "std::string" to "int" exists    c:\Users\Conor\Documents\College\DKIT - Year 2 - Repeat\DKIT - Year 2 - Semester 1 - Repeat\Games Programming\MaroonedCA2\MaroonedCA2\Validator.cpp 72  17  MaroonedCA2
  </code></pre>
  
  <p><strong>Main</strong></p>
  
  <pre><code>cout &lt;&lt; "What is your name ?\n";
      name = validator.getString();&lt;------This skips.
  
      cout &lt;&lt; "\nWhat is your age? ";
      age = validator.getNum();
  
      string character = "What is your sex M/F?";
      sex = validator.getChar(character);
  
  
      cout &lt;&lt;"Name:\n"&lt;&lt; name&lt;&lt;" Age:\n" &lt;&lt; age&lt;&lt; " Sex:\n"&lt;&lt; sex &lt;&lt;"\n";
  </code></pre>
  
  <p><strong>New getString function.</strong></p>
  
  <pre><code>string Validator :: getString()
  {
     string input;
      do 
      {
      } 
      while (
      std::find_if_not( 
          std::begin(input), //from beginning
          std::end(input), //to end
          isalpha //check for non-alpha characters
      ) != std::end(input) //continue if non-alpha character is found
  );
      return input;
  }
  </code></pre>