c – 不允许不完整类型错误和元组

c – 不允许不完整类型错误和元组,第1张

概述所以我面临这个错误 Incomplete type is not allowed #include "stdafx.h"#include <iostream>#include <conio.h>#include <ctype.h>#include <sstream>using namespace std;int main(){ std::tuple<int, bool, f 所以我面临这个错误

Incomplete type is not allowed

#include "stdafx.h"#include <iostream>#include <conio.h>#include <ctype.h>#include <sstream>using namespace std;int main(){    std::tuple<int,bool,float> human = {345,true,2.33};     // Incomplete type is not allowed      system("pause");    return 0;}

任何线索?

解决方法 你需要#include< tuple>能够使用它. 总结

以上是内存溢出为你收集整理的c – 不允许不完整类型错误和元组全部内容,希望文章能够帮你解决c – 不允许不完整类型错误和元组所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/langs/1221519.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-06-05
下一篇2022-06-05

发表评论

登录后才能评论

评论列表(0条)

    保存