码迷,mamicode.com
首页 >  
搜索关键字:stack frame    ( 16930个结果)
(郝斌讲学)数据结构学习篇(四)---栈的CRUD操作
栈 栈类似于箱子。 静态栈、动态栈。   关于栈的操作 #include #include #include typedef struct Node { int data; struct Node *pNext; }NODE, *PNODE; typedef struct Stack { PNODE pTop; PNODE pBottom; }STACK, *PSTACK; ...
分类:其他好文   时间:2014-08-24 16:45:42    阅读次数:179
条款41: 区分继承和模板
· 当对象的类型不影响类中函数的行为时,就要使用模板来生成这样一组类。· 当对象的类型影响类中函数的行为时,就要使用继承来得到这样一组类。下面的代码通过定义一个链表来实现Stack类,假设堆栈的对象类型为T:templateclass stack{public: stack(); ~st...
分类:其他好文   时间:2014-08-24 14:05:52    阅读次数:179
C++ 性能剖析 (三):Heap Object对比 Stack (auto) Object
通常认为,性能的改进是90 ~ 10 规则, 即10%的代码要对90%的性能问题负责。做过大型软件工程的程序员一般都知道这个概念
分类:编程语言   时间:2014-08-24 05:55:43    阅读次数:256
Ruby on Rails Session 1: How to Build a Ruby on Rails on the Ubuntu.
About Ruby on RailsRuby on Rails is an application stack that provides developers with a framework to quickly create a variety of web applications. Ru...
分类:其他好文   时间:2014-08-23 13:55:20    阅读次数:193
NYOJ2括号配对问题
括号配对是最基本的栈的问题,它是栈入门的经典题目,思路是,如果是左括号直接进栈,如果是右括号,这时就要比较栈顶的元素与他是否匹配,如果匹配则出栈,否则进栈,下面是代码的实现: 1 #include 2 #include 3 typedef struct stack{//定义栈来存储括号 4 ...
分类:其他好文   时间:2014-08-23 13:52:40    阅读次数:221
poj1003 Hangover
DescriptionHow far can you make a stack of cards overhang a table? If you have one card, you can create a maximum overhang of half a card length. (We'...
分类:其他好文   时间:2014-08-23 01:00:19    阅读次数:238
[转]MySQL-Galera Cluster With HAproxy
When I started working on Open Stack, I had to investigate about the HA of the nova component. Unfortunatly the nova configuration needed a single ent...
分类:数据库   时间:2014-08-22 21:04:19    阅读次数:527
C#学习笔记 ----对象和类型
类和结构类是存储在堆(heap)上的引用类型,而结构是存储在栈(stack)上的值类型。结构 不支持继承类数据成员 是包含类的数据--字段、常量和事件的成员。函数成员提供了操作类中数据的某些功能,包括方法、属性、构造函数和终结器(finalizer)、运算符以及索引器ref参数 迫使值参数通过引用传...
分类:其他好文   时间:2014-08-22 17:48:09    阅读次数:185
photoWall自定义
- (instancetype)initWithFrame:(CGRect)frame{ self = [super initWithFrame:frame]; if (self) { _scrollView = [[UIScrollView alloc] initWith...
分类:其他好文   时间:2014-08-22 17:45:09    阅读次数:229
layoutSubviews与drawRect
首先两个方法都是异步执行。layoutSubviews方便数据计算,drawRect方便视图重绘。 layoutSubviews在以下情况下会被调用: 1、init初始化不会触发layoutSubviews。 2、addSubview会触发layoutSubviews。 3、设置view的Frame会触发layoutSubviews,当然前提是frame的值设置前后发生了变化。 4、滚动...
分类:其他好文   时间:2014-08-22 16:27:59    阅读次数:138
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!