1,Q:error msg: 'string' is used as a type, but is not defined as a type.
A:添加 using namespace std;
本文解答了一个常见的编程问题:遇到 'string' is used as a type, but is not defined as a type 的错误提示时如何解决。通过添加 using namespace std; 来确保标准库中的类型能够被正确识别。
1,Q:error msg: 'string' is used as a type, but is not defined as a type.
A:添加 using namespace std;
1万+
1257

被折叠的 条评论
为什么被折叠?