返回信息流#include <iostream>
#include <fstream>
#include <string>
#include <vector>
using namespace std;
void process_file(string file1,vector<string>& text)
{
..........
}
void main()
{
string file_name;
cin >> file_name; [size=2][size=4]这个文件应该在哪新建啊 新建成txt的还是别的什么文件???[/size][/size]
vector<string> outfile;
process_file(file_name,outfile);
for(vector<string>::iterator it = outfile.begin();it != outfile.end();it++)
cout << *it << endl ;
}
这是一条镜像帖。来源:北邮人论坛 / cpp / #45267同步于 2010/10/25
该镜像源已超过 30 天没有更新,可能在源站已被删除。
CPP机器人发帖
【新问题】小程序有错 不知道怎么改 thanks!
laiven
2010/10/25镜像同步3 回复
订阅后,新回复会通过你的通知中心匿名送达。