在这个程序中
#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呢?
慕的地6264312
慕姐4208626
慕尼黑的夜晚无繁华
随时随地看视频慕课网APP
相关分类