码迷,mamicode.com
首页 >  
搜索关键字:stack    ( 9691个结果
【转】jvm 内存模型及内存调优
一,JVM内存模型概括 还有一个寄存器,线程运行于其上面 1.程序计数器 记录线程的执行位置,线程私有内存,唯一一个在Java虚拟机规范中没有规定任何OutOfMemoryError情况的区域 2.线程栈(VM stack) 栈的默认大小是1M -Xss2m 这样设置成2M 异常 :Fatal: S ...
分类:其他好文   时间:2016-05-25 22:06:32    阅读次数:219
C++逆波兰表达式的求解
#include<iostream> usingnamespacestd; #include<stack> #include<assert.h> enumType { OP_SYMBOL, OP_NUM, ADD, SUB, MUL, DIV, }; structCell { Type_type; int_value; }; intCountRPN(Cella[],size_tsize) { assert(a!=NULL); stack<in..
分类:编程语言   时间:2016-05-24 17:19:23    阅读次数:287
C++实现二叉树
#include<iostream> usingnamespacestd; #include<queue> #include<stack> template<classT> structBinaryTreeNode { BinaryTreeNode<T>*_left; BinaryTreeNode<T>*_right; T_data; BinaryTreeNode(constT&x) :_left(NULL) ..
分类:编程语言   时间:2016-05-24 17:10:41    阅读次数:208
salt-stack安装redis
install.sls的内容为:redis-install:file.managed:-name:/usr/local/src/redis-3.2.0.tar.gz-source:salt://redis/files/redis-3.2.0.tar.gz-user:root-group:root-mode:755cmd.run:-name:cd/usr/local/src&&tarxfredis-3.2.0.tar.gz&&cdredis-3.2.0&&..
分类:其他好文   时间:2016-05-24 17:10:10    阅读次数:209
河南省第八届ACM程序设计大赛
A:挑战密室 #include <iostream> #include <cstdio> #include <cstring> #include <algorithm> #include <cmath> #include <stack> #include <map> #include <vector ...
分类:其他好文   时间:2016-05-24 16:48:45    阅读次数:169
HDU 5690 All X 暴力循环节
分析:暴力找循环节就好了 #include <iostream> #include <cstdio> #include <cstdlib> #include <cstring> #include <cmath> #include <string> #include <stack> #include ...
分类:其他好文   时间:2016-05-24 00:01:00    阅读次数:473
Android开发网上的一些重要知识点[经验分享]
1. android单实例运行方法 我们都知道Android平台没有任务管理器,而内部App维护者一个Activity history stack来实现窗口显示和销毁,对于常规从快捷方式运行来看都是startActivity可能会使用FLAG_ACTIVITY_NEW_TASK标记来打开一个新窗口, ...
分类:移动开发   时间:2016-05-23 09:05:53    阅读次数:233
A simple stack
// simple stack.cpp : 定义控制台应用程序的入口点。// #include "stdafx.h"#includeusing namespace std;const int SIZE = 100;class Stack{ public: void init() { position... ...
分类:其他好文   时间:2016-05-23 06:43:11    阅读次数:115
二叉树的层次遍历
二叉树从上到下遍历:利用栈,先将根节点压入栈中,出栈,遍历该节点的左孩子,右孩子,依次把该节点的右孩子,左孩子压入栈中。#include<iostream> #include<stack> usingnamespacestd; structBinaryTreeNode { BinaryTreeNode(intvalue) :_value(value) ,_l..
分类:其他好文   时间:2016-05-23 01:05:28    阅读次数:133
2016"百度之星" - 初赛(Astar Round2B)
1003.杨辉三角+逆元 #include <iostream> #include <cstdio> #include <cstdlib> #include <cstring> #include <cmath> #include <stack> #include <string> #include ...
分类:其他好文   时间:2016-05-23 00:49:57    阅读次数:152
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!