福大软工1816 · 第五次作业 - 结对作业2

需求:

新增功能,并在命令行程序中支持下述命令行参数。说明:字符总数统计、单词总数统计、有效行统计要求与个人项目相同:

1、从CVPR2018官网爬取今年的论文列表,输出到result.txt(一定叫这个名字),内容包含论文题目、摘要

2、自定义输入输出文件

3、词频统计

想法:
对于需求一,可以使用正则匹配实现
对于需求二,可以使用如下代码实现:

 #include<iostream>
 #include<fstream>
using namespace std;
void main()
{
	ofstream ofile;
	ofile.open("c:\\helloworld.txt");
	cout << "Hello World!" << endl;
	ofile << "Hello World!" << endl;
	ofile.close();
}

posted on 2018-10-10 22:50  篱小萌  阅读(103)  评论(0编辑  收藏  举报

导航