#include <iostream>
#include <fstream>
using namespace std;
int main()
{
ifstream infile("text.txt", ios_base::in); // this works
ofstream outfile("C:/output.txt", ios_base::out); // doesn't
outfile << "hi";
return 0;
}
没有创建文件。有什么问题?