c++ primer 练习10.4.2
c++ primer 练习10.4.2 本节练习主要是关于stream iterator的。这个组件感觉很有用!在数据输入输出,初始化,与STL algorithm的交互方面都有很大的作用。代码如下: # include <iostream> # include <fstream> # include <sstream> # include <numeric> # include <vector> # include <iterator> # include <algorithm> # include "Sales_item" using namespace std ; void func_1029 ( vector < string > & vst ) ; void func_1030 ( vector < int > & vst ) ; void func_1031 ( vector < int > & vst ) ; void func_1032 ( vector < Sales_item > & total ) ; void func_1033 ( const string & infile , const string & outfile1 , const string & outfile2 ) ; bool CompareIsbn ( const Sales_item