![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
编程知识
lishuhuakai
这个作者很懒,什么都没留下…
展开
-
STL之vector的使用
STL之vector的使用第一部分 使用入门vector可用于代替C中的数组,或者MFC中的CArray,从许多说明文档或者网上评论,一般一致认为应该多用vector,因为它的效率更高,而且具备很好的异常安全性。而且vector是STL推荐使用的默认容器,除非你知道你有特殊需要,使用vector不能满足你的需求,例如需要容器在head和tail高效的插入和删除,或者在任何位置高效的转载 2012-09-27 23:20:26 · 837 阅读 · 0 评论 -
杭电OJ——1069 Monkey and Banana(动态规划!)
Monkey and BananaProblem DescriptionA group of researchers are designing an experiment to test the IQ of a monkey. They will hang a banana at the roof of a building, and at the mean time,原创 2012-10-11 14:59:42 · 5167 阅读 · 1 评论 -
杭电OJ——1051 Wooden Sticks
Wooden SticksProblem DescriptionThere is a pile of n wooden sticks. The length and weight of each stick are known in advance. The sticks are to be processed by a woodworking machine in o原创 2012-10-26 22:52:00 · 8123 阅读 · 2 评论