在下面的 C++ 代码中,将对 1.txt 文件写入 hello。 ifstream filein; ofstream fileout; filein.open("1.txt"); fileout<<"hello";