http://blog.stephencleary.com/2012/07/dont-block-on-async-code.html This is a problem that is brought up repeatedly on the forums and Stack Overflow. ...
分类:
其他好文 时间:
2016-06-02 17:52:22
阅读次数:
208
一、预备知识—程序的内存分配 一个由C/C++编译的程序占用的内存分为以下几个部分 1、栈区(stack)— 由编译器自动分配释放 ,存放函数的参数值,局部变量的值等。其 操作方式类似于数据结构中的栈。 2、堆区(heap) — 一般由程序员分配释放, 若程序员不释放,程序结束时可能由OS回 收 。 ...
分类:
其他好文 时间:
2016-06-02 17:48:03
阅读次数:
123
=== 关于Costmap_2d Package ===
wiki page: http://wiki.ros.org/costmap_2d
=== 我学这个包的时候,尽量总结wiki page上的内容如下:===
所属Stack: navigation
Sammary:
1. 实现2D cost map
2. 输入: sensor data
3. 生成:...
分类:
其他好文 时间:
2016-06-02 14:59:14
阅读次数:
2841
Min Stack 本题收获: 1.可以利用两个栈操作。 2.栈的基本操作。 题目: Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. push(x) - ...
分类:
其他好文 时间:
2016-06-02 00:39:42
阅读次数:
277
Collection
├List
│├LinkedList
│├ArrayList
│└Vector
│ └Stack
└Set
Map
├Hashtable
├HashMap
└WeakHashMap
一、Collection:
1.1 List
1.1.1 LinkedList:
1.1.2 ArrayList:
1.1.3 Vec...
分类:
编程语言 时间:
2016-05-30 15:45:33
阅读次数:
204
作者:余果。 人民邮电出版社。2015年9月第1版。 值得轻快一读,另外此书里推荐的书籍很好。Full-Stack Engineer! 一、如何成为全栈工程师 1 定义:全栈工程师是指,一个能处理数据库、服务器、系统工程和客户端的所有工作的工程师。根据项目不同,可能分为移动栈、web栈,或原生应用程 ...
分类:
Web程序 时间:
2016-05-30 01:07:24
阅读次数:
272
1 #include<iostream> 2 #include<stack> 3 #include<deque> 4 using namespace std; 5 6 7 int main() 8 { 9 stack<int> first;10 cout << "size of first: " & ...
分类:
编程语言 时间:
2016-05-29 18:27:41
阅读次数:
340
安装步骤apt-getupdate
apt-getupgrade
apt-getinstallgitpython-pip
cd/opt/
gitclonehttps://git.openstack.org/openstack-dev/devstack
cd/opt/devstack
./tools/create-stack-user.sh#创建stack用户
vimlocal.conf#创建local.conf文件
[[local|localrc]]
GIT_BASE=${GIT..
分类:
系统相关 时间:
2016-05-29 16:51:28
阅读次数:
522
#include<iostream>using namespace std;#define stacksize 100;struct stack{ char strstack[stacksize]; int top; };void InitStack(stack &s){ s.top=-1;}cha ...
分类:
其他好文 时间:
2016-05-28 23:06:01
阅读次数:
453