在这个程序中
#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呢?
宝慕林4294392
有只小跳蛙
慕标琳琳
随时随地看视频慕课网APP
相关分类