使用道具 举报
Post by pupilzeng while(file.getline){ cin.getline; cout>>buff }
Post by jovesky 能否写详细一些呢,还有啊,cout >> buff 应该是 cout << buff 吧?
Post by pupilzeng Sorry,一下子写快了 还详细啊? 本来就这么简单的一个问题 我的意思就是每读一行,file.getline() 就要用户输入一次cin.getline() 再显示这一行cout<<buff 直到读完整个文件
本版积分规则 发表回复 回帖后跳转到最后一页