程序的运行结果问题?
#include<iostream.h>#include<fstream.h>
void main(){
char ch;
ofstream of1("wr1.dat");
ch=cin.get();
while(ch!=EOF){
of1.put(ch);
cout<<"abcde\n";
ch=cin.get();
cout<<ch<<endl;
}
of1.close();
}
这个程序的运行结果怎么会是这样的:
abc
abcde
b
abcde
c
abcde
abcde
^Z