char *source="hello world ni hao";
char *c=strtok(s,".");
while(c!=NULL)
{
cout<<s;
c=strtok(NULL,".");
}
输出为helloworldnihao
char *source="hello world ni hao";
char *c=strtok(s,".");
while(c!=NULL)
{
cout<<s;
c=strtok(NULL,".");
}
输出为helloworldnihao