首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

c跟指针 字符串 字符 字节

2012-12-20 
c和指针 字符串 字符 字节1.#include stdio.h#include string.hvoid main(){char *lineabc,efg,hij,

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);}?

?

?

热点排行