所以我面临这个错误
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++ - Incomplete type is not allowed 错误和元组,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38209467/