会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Master HaKu
不积跬步,无以至千里;技术积累从点滴做起。
首页
新随笔
管理
上一页
1
···
10
11
12
13
14
15
16
17
18
···
54
下一页
2015年11月4日
STL - 容器 - Map(二)
摘要: 把Map用作关联式数组MapAdvanceTest.cpp#include #include #include #include #include "MapAdvanceTest.h"#include "../../Core/ContainerUtil.h"using namespace std;v...
阅读全文
posted @ 2015-11-04 15:53 Master HaKu
阅读(204)
评论(0)
推荐(0)
2015年10月29日
Python编程-基础知识-List
摘要: Negative Indexes(负索引) Getting Sublists with Slices • spam[2] is a list with an index (one integer).• spam[1:4] is a list with a slice (two integers).
阅读全文
posted @ 2015-10-29 10:06 Master HaKu
阅读(304)
评论(0)
推荐(0)
2015年10月28日
STL - 容器 - Map(一)
摘要: MapTest.cpp#include #include #include #include #include "MapTest.h"using namespace std;void MapTest::simpleEnumeration(){ map coll { { "tim...
阅读全文
posted @ 2015-10-28 14:15 Master HaKu
阅读(164)
评论(0)
推荐(0)
2015年10月26日
STL - 容器 - 运行期指定排序准则
摘要: RuntimeCmp.hpp#include using namespace std;// type for runtime sorting criterionclass RuntimeCmp {public: enum cmp_mode { normal, reverse };private...
阅读全文
posted @ 2015-10-26 11:08 Master HaKu
阅读(368)
评论(0)
推荐(0)
2015年10月24日
Python编程-基础知识-条件判断
摘要: 1. 简单的if/else条件判断 judge_flow.py 运行结果: Please input name: davidInvalid user! Please input name: masterHello MasterPlease input password: aaaWrong passw
阅读全文
posted @ 2015-10-24 14:50 Master HaKu
阅读(366)
评论(0)
推荐(0)
2015年10月22日
STL - 容器 - MultiSet
摘要: MultiSet根据特定排序准则,自动将元素排序。MultiSet允许元素重复。一些常规操作:MultiSetTest.cpp#include #include #include #include #include #include "MultiSetTest.h"using namespace s...
阅读全文
posted @ 2015-10-22 09:55 Master HaKu
阅读(241)
评论(0)
推荐(0)
2015年10月21日
STL - 容器 - Set
摘要: Set根据特定排序准则,自动将元素排序。Set不允许元素重复。一些常规操作:SetTest.cpp#include #include #include #include #include #include "SetTest.h"using namespace std;void SetTest::op...
阅读全文
posted @ 2015-10-21 20:56 Master HaKu
阅读(241)
评论(0)
推荐(0)
Step by Step iOS Project In Action - 视图控制器
摘要: 1. 什么是视图控制器(View Controller)简单来说,视图控制器用来管理你所有的视图。他们是你的视图和模型的粘合剂。如果你做过MVC的Web项目,我想你应该不会对它感到陌生。2. 视图控制器的声明周期MethodDescriptionloadView 创建并返回一个视图控制器的视图vi...
阅读全文
posted @ 2015-10-21 10:42 Master HaKu
阅读(205)
评论(0)
推荐(0)
2015年10月19日
STL - 容器 - Forward List
摘要: forward list是一个行为受限的list, 不能走回头路。它只提供前向迭代器, 而不提供双向迭代器。eg:rbegin(), rend(), crbegin(), crend()这些都不提供。它不提供size()成员函数。没有指向最末元素的anchor, 因此不提供back(), push_...
阅读全文
posted @ 2015-10-19 15:10 Master HaKu
阅读(284)
评论(0)
推荐(0)
2015年10月16日
STL - 容器 - List
摘要: List内部结构完全不同于array, vector, deque。它提供了两个pointer,指向第一个和最后一个元素。不支持随机访问元素,因此要访问第n个元素必须爬过n - 1个元素。在任何位置上执行元素的插入和删除操作都很快。因此会有一些属于list的特殊类型操作,比如merge, splic...
阅读全文
posted @ 2015-10-16 10:41 Master HaKu
阅读(162)
评论(0)
推荐(0)
上一页
1
···
10
11
12
13
14
15
16
17
18
···
54
下一页
公告