本文介绍了QT中strtok_s的等效项是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
QT中strtok_s的等效项是什么?
What is the equivalent for strtok_s in QT??
推荐答案QT是一个应用程序框架. strtok_s是C运行时函数.更具体地说,strtok_s是Microsoft的同一标准C非安全功能strtok的安全版本.如果您在Windows上使用QT,请继续使用strtok_s,因为它应该可用.如果您的代码将要在Linux上运行,请使用strtok,然后添加pragma以隐藏/忽略在Visual Studio编译期间收到的警告. QT is an application framework. strtok_s is a C runtime function. More specifically, strtok_s is Microsoft''s secure version of the same standard C non-secure function, strtok. If you''re using QT on Windows, just keep using strtok_s because it should be available. If your code is going to be running on Linux, use strtok, and add the pragma that hides/ignores the warning you get during a Visual Studio compile.
strtok是标准的C库函数,可以用来代替Microsoft特定的strtok_s strtok is the standard C library function that can be used instead of Microsoft-specific strtok_s
我认为您正在寻找 QString :: split() [ ^ ] I think you are looking for QString::split() [^]
更多推荐
QT中strtok
发布评论