在这个程序中
#include<iostream>
#include <fstream>
using namespace std;
void main()
{
fstream io;
char c;
io.open ("a.txt",ios::in);
while (!io.eof ())
{
io>>c;
cout<<c;
}
cout<<endl;
io.close;
}
a.txt文本中里面有,abc为什么输出的是abcc呢?
紫衣仙女
慕的地10843
一只名叫tom的猫
随时随地看视频慕课网APP
相关分类