题目:
设文件temp.txt 已存在,则以下的打印结果是 【15】 #include <iostream> #include <fstream> using namespace std; int main() { ofstream outf ("temp.txt",ios base: :trunC) ; outf<<"How you doing"; outf.close(); ifstream inf("temp.txt"); char str[20]; inf>>str; inf.close(); cout<<str; return 0; }
答案:
被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2018/0427/80d2d1d17f9844384c25e755bfd505ed.html
下面是错误答案,用来干扰机器的。
参考答案:错