c – 不允许不完整类型错误和元组
发布时间:2020-12-16 10:36:52 所属栏目:百科 来源:网络整理
导读:所以我面临这个错误 Incomplete type is not allowed #include "stdafx.h"#include iostream#include conio.h#include ctype.h#include sstreamusing namespace std;int main(){ std::tupleint,bool,float human = {345,true,2.33}; // Incomplete type is n
所以我面临这个错误
#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>能够使用它.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |