码迷,mamicode.com
首页 >  
搜索关键字:stack frame    ( 16930个结果)
优先队列(堆) Priority Queue
Priority Queue Definition & Description:                    In computer science/data structures, a priority queue is an abstract data type which is like a regular queue or stack data str...
分类:其他好文   时间:2014-09-19 03:25:45    阅读次数:301
ZOJ 3587 扩展KMP
思路:这题确实大帝做得很机智!字符串先求最长前缀,反的字符串再求一次最长前缀,然后就可以搞了。 每个子串出现的次数就是最长前缀的次数嘛! #pragma comment(linker, "/STACK:1024000000,1024000000") #include #include #include #include #include #include #include #include...
分类:其他好文   时间:2014-09-18 22:17:34    阅读次数:183
PAT-1015 Reversible Primes (20)
#include#include#include#includeusing namespace std;int main(){ int n,d; stack s; //freopen("1015-in.txt","r",stdin); //freopen("1015-out.t...
分类:其他好文   时间:2014-09-18 22:13:54    阅读次数:173
C程序的内存空间
一个C程序在内存空间里面主要包括以下几个部分:1,代码段2,数据段3,栈4,堆 代码访问代码段,数据段放静态和全局变量,函数参数和局部变量放在堆栈里面,堆里面存是malloc分配的区域 堆栈里面是一个栈的结构,往里push东西的时候就小的数据就是向整形,浮点型这类基本的数据。但是stack有一个更大...
分类:其他好文   时间:2014-09-18 16:26:24    阅读次数:155
Stack and queue.
队列的定义及基本运算1、定义 队列(Queue)是只允许在一端进行插入,而在另一端进行删除的运算受限的线性表 (1)允许删除的一端称为队头(Front)。 (2)允许插入的一端称为队尾(Rear)。 (3)当队列中没有元素时称为空队列。 (4)队列亦称作先进先出(First In Firs...
分类:其他好文   时间:2014-09-18 16:17:44    阅读次数:204
IDG | 四则运算表达式计算
分析 首先将中缀表达式转换为后缀表达式(逆波兰式),然后使用栈进行计算。 代码 import java.util.LinkedList; import java.util.List; import java.util.Stack; public class ExpCal { public static double calc(String exp) { if (exp == null...
分类:其他好文   时间:2014-09-18 11:28:43    阅读次数:206
根据Frame.Content获取Frame
public static T GetParent(DependencyObject child) where T : DependencyObject { DependencyObject dependencyObject = VisualTreeHelper....
分类:其他好文   时间:2014-09-18 08:34:23    阅读次数:150
UIView 和 CALayer
UIView负责交互和frame以及显示CALayerCALayer负责渲染,是UIView的一个readonly属性用来设置圆角参数是内切圆的半径,如果想画一个圆的话,view必须是正方形.参数应该是view边长的一半self.changeView.layer.cornerRadius=50;描边的宽度self.changeView.layer.borderWidth=5;描边..
分类:其他好文   时间:2014-09-18 03:17:53    阅读次数:166
C# 堆和栈的区别
线程堆栈:简称栈 Stack 托管堆: 简称堆 Heap 使用.Net框架开发程序的时候,我们无需关心内存分配问题,因为有GC这个大管家给我们料理一切。如果我们写出如下两段代码: 代码段1: public?int?AddFive(int?p...
分类:其他好文   时间:2014-09-18 00:54:43    阅读次数:435
深入Java虚拟机:JVM中的Stack和Heap
转自:http://www.cnblogs.com/laoyangHJ/archive/2011/08/17/gc-Stack.html——————————————————————————————————————————————在JVM中,内存分为两个部分,Stack(栈)和Heap(堆),这里,我...
分类:编程语言   时间:2014-09-18 00:30:22    阅读次数:358
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!