摘要: 1.map map rankDict;//定义map rankDict[1] = 5; rankDict[2] = 6;//map赋值 int dictSize = rankDict.size(); //map的大小 cout ::iterator iter; for(iter = rankD... 阅读全文
posted @ 2014-11-24 15:30 huangxiaohen 阅读(247) 评论(0) 推荐(0) 编辑
摘要: struct Date{ int day, month, year;};struct Book{ string name; Date date; void init(string n, int y, int m, int d); void print(void);};void Book::init(... 阅读全文
posted @ 2014-11-24 10:12 huangxiaohen 阅读(294) 评论(0) 推荐(0) 编辑