incomplete type is not allowed ofstream

错误:

incomplete type is not allowed

解决方案:

#include<fstream>

原文地址:https://www.cnblogs.com/liumeng-blog/p/5069613.html