title: function which takes a string as input and splits it into words. Punctuation characters should be ignored
body: <p>I wrote a feature but an error popped up. and I don't know how to solve it.
  And in general, am I properly moving in the implementation of the wind-up?</p>
  
  <pre><code>void Split(char* str) 
  {
      const char* punctuation = "~`!@#$%^&amp;*()-_+=,./?;:'";
      char* ch = strtok(str, punctuation);
  
      while (ch) 
      {              
          std::cout &lt;&lt; ch &lt;&lt; '\n';
          ch = strtok(0, punctuation);
      }
  }
  </code></pre>
  
  <p>Error - Severity    Code    Description Project File    Line    Suppression State
  Error   C4996   'strtok': This function or variable may be unsafe. Consider using strtok_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.   </p>