#include <iostream>
using namespace std;
int main()
{
char string1[] ="set one cat";
char a[]=" ";
char *token;
token=strtok(string1,a);
while(token!=NULL)
{
cout<<token<<endl;
token=strtok(NULL,a);
}
getchar();
//return 0;
}
#include <iostream>
using namespace std;
int main()
{
char string1[] ="set one cat";
char a[]=" ";
char *token;
token=strtok(string1,a);
while(token!=NULL)
{
cout<<token<<endl;
token=strtok(NULL,a);
}
getchar();
//return 0;
}