这个错误提示是说在当前作用域中找不到类型名为string的定义。这通常是由于没有包含正确的头文件或命名空间没有正确使用导致的。在这种情况下,需要添加以下头文件:

#include

或者添加命名空间std:

using namespace std;

如果仍然出现错误,请检查代码中其他可能导致该错误的问题。

#include mythreadh#include QVector#include cstringint splitTextconst string& text const char delimiter string result int len = textlength cnt = 0 start = 0; for int i = 0; i len; i++ i

原文地址: https://www.cveoy.top/t/topic/cjDo 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录