64,646
社区成员
发帖
与我相关
我的任务
分享
#include <stdio.h>
#include <string.h>
int main()
{
char s[256]= "WOA(3).WOB(2).CWO(5).";
char *str;
str = strtok( s, "." );
while (str){
printf( "%s\n", str );
str = strtok(NULL,".");
}
return 0;
}