摘要:
以结构体point为例,成员变量x,y,定义加法和输出流方式。 阅读全文
posted @ 2016-08-23 10:59
Yan_Bin
阅读(146)
评论(0)
推荐(0)
摘要:
考虑这样一个题目: 输入的每行是若干整数,要求输出每行所有整数的和。 实例代码: 阅读全文
posted @ 2016-08-23 10:53
Yan_Bin
阅读(376)
评论(0)
推荐(0)
摘要:
1.set集合中如果存储string类,那么集合元素将按照字典序全部排好。 2.set集合的遍历: set<string>::iterator it; for(it = dict.begin() ; it != dict.end() ; it++) cout << *it << endl; 阅读全文
posted @ 2016-08-23 00:16
Yan_Bin
阅读(164)
评论(0)
推荐(0)
摘要:
Andy’s First Dictionary Andy, 8, has a dream - he wants to produce his very own dictionary. This is not an easy task for him, as the number of words t 阅读全文
posted @ 2016-08-23 00:14
Yan_Bin
阅读(148)
评论(0)
推荐(0)