c++primer 练习11.4

int main(int argc,char **argv) {
	ifstream in("ss.txt");
	string line;
	vector> vec;
	while (getline(in, line)) {
		string s;
		int i;
		istringstream ss(line);
		ss >> s >> i;
		vec.push_back(make_pair(s, i));
	}
	for (auto v : vec) {
		cout << v.first<<" "<

 

你可能感兴趣的:(C++)