QT中strtok

编程入门 行业动态 更新时间:2024-10-25 22:24:44
本文介绍了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

本文发布于:2023-11-13 23:43:14,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1585634.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:QT   strtok

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!