2012年2月23日

C++ Primer 第10章 习题 10.18

摘要: //10-18.cpp //定义一个map对象,其元素的键是家族姓氏, //而值则是存储该家族孩子名字的vector对象。 //进行基于家族姓氏的查询,输出该家族的所有孩子的名字 #include<iostream> #include<map> #include<vector> #include<string> using namespace std; int main() { map<string,vector<string> > children; string surname,childName; //读入条目(家族 阅读全文

posted @ 2012-02-23 20:25 1.曲待续 阅读(94) 评论(0) 推荐(0) 编辑

导航