hey, trying to remove puncuation from a c-string. I'm sure there are better ways but assignment wants it like this(including void main)
everything works down to the while loop(commented out), im able to copy the first word into newstr and then i want to add the rest of the sentence(strcat?)
know im missing something simple
If all you want to do is remove the "punctuation" there is really no need for strtok(). Instead just iterate through the string and "remove" the offending characters.
By the way in a C++ program main() must be defined to return an int, a decent compiler will issue at worst a warning about not using an int return type, and at best issue an error message.