//stack.h#include#include#define TRUE 1#define FALSE 0#define OK 1#define ERROR 0#define OVERFLOW -1#define UNDERFLOW ...
分类:
其他好文 时间:
2015-12-10 21:45:42
阅读次数:
115
一 、oracle 有关 IO 信息的相关统计函数 Oracle i/o stack包含hbas,存储相关的交换机、存储物理磁盘。那么oracle建议在应用程序部署的时候,建议去验证i/o避免存在问题。但是之前有一个很刺手的问题,那就是如何去验证i/o侧吞吐量,换句话说怎么去验证i/o吞吐量更...
分类:
数据库 时间:
2015-12-10 11:24:07
阅读次数:
212
一、变量,本质代表一段可以操作的内存,她使用方式无非就是内存符号化+数据类型 1.保存变量有三个区域: 1》静态存储区 2》stack 3》heap 2.变量又根据声明的位置有两种称呼: 1》全局变量 2》局部变量 3.三种存储区分别存储那种变量 1》静态存...
分类:
移动开发 时间:
2015-12-09 19:49:34
阅读次数:
193
输出n的全排列#include#includeusing namespace std;#define MAXN 10int vis[MAXN];int stack[MAXN];int n,k,num,top;void dfs(int n){ int st=1; stack[top++]=...
分类:
其他好文 时间:
2015-12-09 19:41:18
阅读次数:
135
https://leetcode.com/problems/implement-stack-using-queues/class Stack {public: queue q1,q2; // Push element x onto stack. void push(int x) {...
分类:
其他好文 时间:
2015-12-08 18:15:48
阅读次数:
113
stack介绍:先进后出实现C++STL,栈有两个参数:template> class stack:参数示意: T:元素类型 Container:被用于存储和访问元素的类型成员函数:1.stack:stackexplicit stack(const Container& ctnr = Contain...
分类:
其他好文 时间:
2015-12-07 22:13:23
阅读次数:
147
题目传送门题意:训练指南P186分析:主要为了熟悉STL中的stack,queue,priority_queue,尤其是优先队列从小到大的写法#include using namespace std;int main(void) { int n; while (scanf ("%d", &n) ==...
分类:
其他好文 时间:
2015-12-07 20:16:28
阅读次数:
136
Stack简介stack是堆栈容器,是一种“先进后出”的容器。stack是简单地装饰deque容器而成为另外的一种容器。#include 1.stack对象的默认构造stack采用模板类实现, stack对象的默认构造形式: stack stkT;stack stkInt; //一个存放int的.....
分类:
其他好文 时间:
2015-12-07 12:19:53
阅读次数:
146
阅读本文前请浏览ELKStack最新版本测试一安装篇http://jerrymin.blog.51cto.com/3002256/1720109详细配置如下:一,客户端1,nginx日志格式log_formatlogstash_json‘{"@timestamp":"$time_iso8601",‘‘"host":"$server_addr",‘‘"clientip":"$remote_addr",‘‘"size":$body_bytes_..
分类:
其他好文 时间:
2015-12-07 00:45:37
阅读次数:
311
版本filebeat1.0.0-rc2logstash2.0.0-1elasticsearch2.0.0kibana4.2名词解释Elasticsearch存储索引KibanaUIKibanadashboard可视化思维图LogstashInputBeatsplugin收集事件Elasticsearchoutputplugin发送事务Filebeat日志数据托运人shipperTopbeat轻量级服务器监控Packetbeat在..
分类:
其他好文 时间:
2015-12-07 00:45:37
阅读次数:
1053