::strtok is what you want to split a string into words separated by a space " ".
first call to ::strtok, provide the string you want to parse, as well as the token to look for.
as long as the function does not return NULL the return value will point to the next word.
When the function returns NULL, you have reached the end of the line.
::strtok modifies the string you pass in, so make sure you do not need the string afterwords. It will replace the spaces with NULL characters.
cout << "Complete Line Text: " << str1 << endl;
char* pWord = ::strtok(str1, " ");
while (pWord)
{
cout << "Word: " << pWord << endl;
}