码迷,mamicode.com
首页 >  
搜索关键字:stack frame    ( 16930个结果)
HDUOJ Train Problem I
?? #include #include #include using namespace std; stack str; char s1[9],s2[9]; int main() {  int n;  str.push('#');  while(~scanf("%d %s %s",&n,s1,s2))  {   while(str.top()!='#')    st...
分类:其他好文   时间:2015-08-02 10:16:49    阅读次数:141
tomcat一些参数的理解
jvm参数的设置-server:一定要作为第一个参数,在多个CPU时性能佳-xms:初始化堆内存的大小-xmx:最大堆内存的大小-xx:PermSize:永久内存区初始化大小-xx:MaxPermSize:永久内存区最大大小-xx:MaxNewSize:新生成池最大大小-Xss:每个线程的Stack大小xms,xmx,MaxNewSize是..
分类:其他好文   时间:2015-08-02 06:44:11    阅读次数:106
hdu5029 树链剖分 + 线段树
将树映射在线段上进行操作 然后每个 重链变成一个连续的区间#include #include #include #include #include #pragma comment(linker,"/STACk:10240000,10240000")using namespace std;const....
分类:其他好文   时间:2015-08-02 00:48:21    阅读次数:177
匈牙利算法
1 /*Author :usedrose */ 2 /*Created Time :2015/8/1 23:39:01*/ 3 /*File Name :2.cpp*/ 4 #pragma comment(linker, "/STACK:1024000000,1024000000") 5 #i...
分类:编程语言   时间:2015-08-02 00:46:56    阅读次数:172
[leedcode 155] Min Stack
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) -- Push element x onto stack.pop() -- Removes...
分类:其他好文   时间:2015-08-01 23:17:36    阅读次数:108
南阳oj 郁闷的c小加(二) 题目267
?? #include #include #include #define N 1000 #include using namespace std; stack str;//字符栈  转化为后缀式 stack num;//数字栈  计算值 char s1[N],s2[N],s3[1000000]; int top; int com(char x)//比较优先级 { ...
分类:其他好文   时间:2015-08-01 19:02:27    阅读次数:78
南阳oj 郁闷的c小加(一) 题目257
?? #include #include #include #define N 1000 using namespace std; stack op;//定义保存运算符的栈 char s1[N],s2[N];  int priority(char ch)//定义运算符的优先级   {     int num;     switch(ch)     {  ...
分类:其他好文   时间:2015-08-01 17:27:23    阅读次数:117
hdu 4990 Reading comprehension
DescriptionRead the program below carefully then answer the question.#pragma comment(linker, "/STACK:1024000000,1024000000")#include #include#include ...
分类:其他好文   时间:2015-08-01 17:06:11    阅读次数:115
C++ Primer 学习笔记_23_类与数据抽象(9)--四种对象生存期和作用域、static 用法总结
C++ Primer 学习笔记_23_类与数据抽象(9)--四种对象生存期和作用域、static 用法总结 前言: 从上图可知,程序占用的内存被分了以下几部分. (1)、栈区(stack)     存放函数的参数值,局部变量的值等,内存的分配是连续的。栈上的内容只在函数的范围内存在,当函数运行结束,这些内容也会自动被销毁,其特点是效率高,但空间大小有限...
分类:编程语言   时间:2015-08-01 14:19:14    阅读次数:163
Java垃圾回收工作原理
在C++中,在heap上分配对象比在stack上分配对象更加昂贵。程序需要找到合适的内存块,再返回内存的地址。但是在Java中垃圾回收器显著地提高了在heap上分配对象的速度。听起来会有些怪,但是这就是Java垃圾回收器工作的方式。而且这意味着Java中在heap上分配对象几乎跟其他语言在stack...
分类:编程语言   时间:2015-08-01 12:47:48    阅读次数:153
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!