mdsk.net
当前位置:首页 >> 怎样用strtok函数将"ABCD234"分割成"A" "B" "C" "D... >>

怎样用strtok函数将"ABCD234"分割成"A" "B" "C" "D...

这个问题稍微有点无聊,如果你非得用strtok把 "abcd1234" 分成 "a" "b" "c" "d" "1" "2" "3" "4"输出,可以这么干 #include #include int main() { char s[]= "abcd1234"; char *d; char save; char *p; d = s + 1; save = *d; p=strtok(s, &sav...

网站首页 | 网站地图
All rights reserved Powered by www.mdsk.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com