#include <stdlib.h>
#include <stdio.h>
#include <string.h>
int main()
{
//char *b= "asdasd,wewb,ewc+"; 这句函数执行时报错,以后用数组装字符串吧
char a[]= "asdasd,wewb,ewc+";
char *temp[20];//指针数组存字符串的使用
temp[0]= strtok(a,",");
printf("temp = %s\n",temp[0]);
temp[1] = strtok(NULL,",");
printf("temp = %s\n",temp[1]);
temp[2]= strtok(NULL,",");
printf("temp = %s\n",temp[2]);
system("pause");
}