栈和队列都是动态集合,元素的出入是规定好的。栈规定元素是先进后出(FILO),队列规定元素是先进先出(FIFO)。栈和队列的实现可以采用数组和链表进行实现。在标准模块库STL中有具体的应用,可以参考http://www.cplusplus.com/reference/。
栈的基本操作包括入栈push和出栈pop,栈有一个栈顶指针top,指向最新如栈的元素,入栈和出栈操作操作都是从栈顶端进...
分类:
编程语言 时间:
2014-11-24 10:11:18
阅读次数:
155
查看man ls时,发现很多man中的参数是不支持的。1 重建manpages数据库sudo /usr/libexec/makewhatishttps://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/...
分类:
数据库 时间:
2014-11-23 20:05:42
阅读次数:
264
分配委托(将命名方法分配给其委托)using System;public class GenericFunc{ public static void Main() { // Instantiate delegate to reference UppercaseString meth...
分类:
其他好文 时间:
2014-11-23 15:57:21
阅读次数:
152
MRC这个词应该是我编的,ARC,Automatic Reference Counting,手工引用计数就应该是:Manual Reference Counting,那就应该是MRC喽,不过没有见人这样用过。ARC引入了新的语句管理自动释放池语法:@autoreleasepool { // Cod....
分类:
其他好文 时间:
2014-11-22 18:50:00
阅读次数:
187
1、Activity的生命周期2、Service的生命周期3、Service和Activity在同一个线程吗默认情况下是在同一个主线程中。但可以通过清单中android:process属性配置不同的进程。4、java中的soft reference是个什么东西 如果一个对象只具有软引用,则内存空间....
分类:
移动开发 时间:
2014-11-22 18:39:11
阅读次数:
239
*fold.txt* For Vim version 7.4. 最后修改: 2010年5月 VIM REFERENCE MANUAL by Bram Moolenaar 译者: Zimin,tocer 折叠 *Folding* *folding* *folds*...
分类:
系统相关 时间:
2014-11-22 11:45:25
阅读次数:
303
The idea is to create a Ptr type that acts like a reference in Java.And A Garbage Collector (MemMgr) type that acts like a garbage collector in Java.J...
分类:
编程语言 时间:
2014-11-21 23:12:56
阅读次数:
421
本文并不准备介绍全部的oracle函数,当前情势下,俺也还没这个时间,需要学习的东西太多了,要把多数时间花在学习经常能用上的技术方面:),所以如果是准备深入了解所有oracle函数的朋友,还是去关注:Oracle SQL Reference官方文档更靠谱一些。 本文更多将会介绍三思在日常中经常会用到...
分类:
数据库 时间:
2014-11-21 15:59:24
阅读次数:
285
stl::map是个很危险的容器,因为当用[]访问map元素时不是只读,还伴随着写操作:当访问的key值不存在时会自动插入。以下引自:http://www.cplusplus.com/reference/map/map/operator[]/Ifkmatches the key of an elem...
分类:
其他好文 时间:
2014-11-21 12:32:47
阅读次数:
139
url routing mechanismurl name/namespaceWe can name a url pattern in urls.py, and reference this name to generate a url in other places. This ensures n...
分类:
其他好文 时间:
2014-11-21 12:30:07
阅读次数:
169