读书人

c跟指针 字符串 字符 字节

发布时间: 2012-12-20 09:53:21 作者: rapoo

c和指针 字符串 字符 字节

1.

#include <stdio.h>#include <string.h>void main(){char *line="abc,efg,hij,kk";static char sep[]=",";char *token;for(token=strtok(line,sep);token!=NULL;token=strtok(NULL,sep))printf("next token is %s\n",token);}?

?

?

读书人网 >编程

热点推荐