vetty

2015年4月7日

Permutation Sequence

摘要: The set [1,2,3,...,n] contains a total of n! unique permutations.By listing and labeling all of the permutations in order, We get the following sequen... 阅读全文

posted @ 2015-04-07 11:50 cocos2014 阅读(190) 评论(0) 推荐(0) 编辑

C++中下标操作注意事项

摘要: C++中,下标操作不添加元素,对于任何使用下标操作的情况,如string类型、vector类型等等,必须是已存在的元素才能用下标操作符进行索引。如果类型为空,通过下标操作进行赋值时,不会添加任何元素,根本不起作用,验证代码如下: 1 #include 2 #include 3 using names... 阅读全文

posted @ 2015-04-07 11:37 cocos2014 阅读(1082) 评论(0) 推荐(0) 编辑

导航