标题:strtok怎么用啊,为什么这样是错的啊???
取消只看楼主
hy247767221
Rank: 2
来 自:襄樊
等 级:论坛游民
帖 子:41
专家分:22
注 册:2011-7-27
结帖率:87.5%
 问题点数:0 回复次数:0 
strtok怎么用啊,为什么这样是错的啊???
#include<stdio.h>
#include<string.h>

int main()
{
    char *string = "1266,400";
    char *p = strtok(string, ",");
    printf("%s\n", strtok(string, ","));
    p = strtok(NULL, ",");
    printf("%s\n", p);

    return 0;
}
搜索更多相关主题的帖子: include return 
2011-10-14 16:58



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-352446-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.215286 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved