文件输出出现问题,请大神指教
目的:输入一个int,然后存到ss.docx里(与cpp文件在同一文件夹)代码:
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a;
cin>>a;
ofstream outfile;
outfile.open("ss.docx", ios::out);
return 0;
}
结果ss.docx里没有出现输入的数,帮忙看一下哈。
[此贴子已经被作者于2022-8-31 21:48编辑过]