Miscellany
public text v1 · immutable#include <iostream>
#include <string>
int main(){
char some_string [] = "some long string with multiple word";
char *token;
cout << " your phrase was:\n" << some_string
<< "\n\n the tokens are:\n";
token = strtor ( some_string, " ");
while ( token != NULL ) {
cout << token << '\n';
token = strtok ( NULL, " " );
}
return 0;
}