摘要: C code:/* strtok example */#include <stdio.h>#include <string.h>int main (){ char str[] ="- This, a sample string."; char * pch; printf ("Splitting string \"%s\" into tokens:\n",str); pch = strtok (str," ,.-"); while (pch != NULL) { printf ("% 阅读全文
posted @ 2011-07-12 21:50 zxfx100 阅读(373) 评论(0) 推荐(0) 编辑