Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将一个字符串数组传递给这样的函数int function (string text[])。但是 IntelliSense 说标识符字符串是 undefined 。为什么我不能像通常使用 int 数组那样传递字符串数组?
int function (string text[])
你是在使用std::string还是只是string?using std::string如果您的代码中没有它,请尝试添加。
std::string
string
using std::string