首页 > 代码库 > 字符串分割

字符串分割

char s[] = "Golden Global      View,disk * desk";const char *d = " ,*";char *p;p = strtok(s,d);while(p){   MessageBox(NULL,p,NULL,NULL);   p=strtok(NULL,d);}

 

字符串分割