C++报错不允许使用不完整的类型

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_37058219/article/details/83340257
#include "pch.h"
#include <iostream>
#include <fstream>//报错是因为没有添加相应的头文件的原因
using namespace std;

int main()
{
    ofstream outfile;//这里报错“不允许使用不完整的类型”
}

猜你喜欢

转载自blog.csdn.net/qq_37058219/article/details/83340257