一,JVM内存模型概括 还有一个寄存器,线程运行于其上面 1.程序计数器 记录线程的执行位置,线程私有内存,唯一一个在Java虚拟机规范中没有规定任何OutOfMemoryError情况的区域 2.线程栈(VM stack) 栈的默认大小是1M -Xss2m 这样设置成2M 异常 :Fatal: S ...
分类:
其他好文 时间:
2016-05-25 22:06:32
阅读次数:
219
#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
#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
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
A:挑战密室 #include <iostream> #include <cstdio> #include <cstring> #include <algorithm> #include <cmath> #include <stack> #include <map> #include <vector ...
分类:
其他好文 时间:
2016-05-24 16:48:45
阅读次数:
169
分析:暴力找循环节就好了 #include <iostream> #include <cstdio> #include <cstdlib> #include <cstring> #include <cmath> #include <string> #include <stack> #include ...
分类:
其他好文 时间:
2016-05-24 00:01:00
阅读次数:
473
1. android单实例运行方法 我们都知道Android平台没有任务管理器,而内部App维护者一个Activity history stack来实现窗口显示和销毁,对于常规从快捷方式运行来看都是startActivity可能会使用FLAG_ACTIVITY_NEW_TASK标记来打开一个新窗口, ...
分类:
移动开发 时间:
2016-05-23 09:05:53
阅读次数:
233
// 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
1003.杨辉三角+逆元 #include <iostream> #include <cstdio> #include <cstdlib> #include <cstring> #include <cmath> #include <stack> #include <string> #include ...
分类:
其他好文 时间:
2016-05-23 00:49:57
阅读次数:
152