使用ifstream和getline读取文件内容[c++]
摘要:
#include<iostream>#include<fstream>#include<string>usingnamespacestd;//输出空行voidOutPutAnEmptyLine(){cout<<"\n";}//读取方式:逐词读取,词之间用空格区分//readdatafromthefile,WordByWord//whenusedinthismanner,we'llgetspace-delimitedbitsoftextfromthefile//butallofthewhitespacethatsepar 阅读全文
posted @ 2013-05-10 18:50 Jecho 阅读(432) 评论(0) 推荐(0) 编辑