怎么后面多输出个东西?
下面是源代码:
#include <iostream>
using namespace std;
#include <fstream>
void main()
{
char ch;
ofstream fout;
fout.open("a.txt");
ifstream fin;
fin.open("b.txt");
while(!(fin.eof()))
{
fin>>ch;
fout<<ch;
}
}
b.txt里面的内容是 what you want
输出怎么是wahtyouwantt