摘要:
View Code #include <stdio.h>#include <string>int main() { char list[] = "adfafa,sdfafaf,sdfsdfaf,sdfafaf,sdffafs"; char list2[10][20]={0}; char rule[] = ","; char *token; int tmplen=0; int offset=0; int num=0; token = strtok(list, rule); while (token!=NULL) { ... 阅读全文
posted @ 2011-12-05 16:40 Fear_Hao 阅读(463) 评论(0) 推荐(0) 编辑