摘要:
C++用 ifstream 声明输入文件对象,用 ofstream 声明输出文件对象。getline的使用:(感觉有点像孔乙己的茴香豆的 茴 的写法了)#include<iostream>#include<fstream>#include<string>using namespace std;int main(){ ifstream infile("getline.txt",ios::in | ios::binary); char buf1_1[30]; string buf1; char buf2[30]; ///注意这里getline 阅读全文
posted @ 2012-05-18 20:14
KingsLanding
阅读(4116)
评论(0)
推荐(0)
浙公网安备 33010602011771号