strtok()没有正确分割字符串 [英] strtok() not splitting string correctly

查看:86
本文介绍了strtok()没有正确分割字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好我正在使用一个程序,如果我在程序之外引入,就不会分裂一大串字符。

如果将字符串直接放在灵芝代码,这里是:

Hi everyone; i''m working with a program that can''t split a strig of characters if i introduce out of the program.
It only work''s if the string is put it directly in the the soucer code, here it is:

展开 | 选择 | Wrap | 行号

推荐答案

展开 | 选择 | Wrap | 行号


不,它给了我同样的错误;我不知道为什么但是在这一部分:

No, it gives me the same error; i don''t know why but in this part:

展开 | 选择 | Wrap | 行号


你试过一步一步地运行它步骤?


可能是那部分!= NULL永远不会因某种原因被执行


Savage
Have u tryed running it step by step?

It might be that part with !=NULL never gets executed for some reason

Savage


这篇关于strtok()没有正确分割字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆