#include<fstream>
#include<iostream>
#include<string>
using namespace std;
void main()
{
ofstream outfile;
if(outfile.open("model.txt",ios::out)==0)
{
cout<<"open error";
}
}
编译后出现了这样的错误:
error C2120: 'void' illegal with all types
Error executing cl.exe.
于是错了,倍受打击