Sweety

Practice makes perfect

导航

2014年7月23日

摘要: B - This Sentence is False (6.3.2)(6.3相关题库) #include #include #include #include #include using namespace std; #define maxn ... 阅读全文

posted @ 2014-07-23 17:56 蓝空 阅读(128) 评论(0) 推荐(0) 编辑

摘要: 如何用随机数生成0到n之间的m个不重复的数 1、最直接的方法就是先随机生成一个0到n之间的数,判断这个数是否已被选上,如果以前没选过,则选上,如果以前已选,则丢弃 [cpp] view plaincopyprint? void common(int n,int m) { ... 阅读全文

posted @ 2014-07-23 17:54 蓝空 阅读(197) 评论(0) 推荐(0) 编辑

摘要: 1、首先必须了解,string可以被看成是以字符为元素的一种容器。字符构成序列(字符串)。有时候在字符序列中进行遍历,标准的string类提供了STL容器接口。具有一些成员函数比如begin()、end(),迭代器可以根据他们进行定位。 注意,与char*不同的是,string不一定以NULL... 阅读全文

posted @ 2014-07-23 17:18 蓝空 阅读(239) 评论(0) 推荐(0) 编辑

摘要: Description In this problem, you have to analyze a particular sorting algorithm. The algorithm processes a sequence of n distinct integers by ... 阅读全文

posted @ 2014-07-23 15:18 蓝空 阅读(152) 评论(0) 推荐(0) 编辑