码迷,mamicode.com
首页 >  
搜索关键字:tasks and back stack    ( 26134个结果
栈的基础操作——2,8,16进制的入栈——数组类型定义
#define stack_init_size 100 #define stackincrement 10 typedef int ElemType; typedef int status; const status error=0; const status ok=1; const status overflow=-2; const int MAXSIZE = 100; typedef st...
分类:其他好文   时间:2014-05-26 06:17:29    阅读次数:243
51系列小型操作系统精髓 简单实现10 C语言版优化后发布(有图)
4个任务   /* 使用keil4 可运行8个任务 任务从rtos_wait()处切换,在定时时间到后从定时中断中切换回来。 */ #include "STC12C5A.H" #define TIMER_RELOAD() {TL0=0x00;TH0=0xC4;}//使能T/C 初始10ms #define MAX_TASKS 8 //任务槽最大个数. unsig...
分类:编程语言   时间:2014-05-25 02:03:17    阅读次数:293
设计模式(9.1)--迭代器与组合模式
缓存(caching): 当组合结构很复杂,或者遍历的代价太高,那么实现组合节点的缓存就很有帮助。 (1) Java Collection Framework 指的是一群类的接口。 其中包括了 ArrayList, Vector , LinkedList , Stack ,和 PriorityQueue. 这些类都实现了java.util.Collection接口。 (2) Collect...
分类:其他好文   时间:2014-05-24 23:37:45    阅读次数:432
Accelerated C++学习笔记7—<使用顺序容器并分析字符串>
第6章  使用库算法 本章中主要教我们如何使用几个库算法来解决与处理字符串和学生成绩相关的问题。 1、分析字符串 使用一个循环来连接两幅字符图案 for(vector::const_iterator it = bottom.begin(); it != bottom.end(); ++it) ret.push_back(*it); 等价于 ret.insert(ret.end(...
分类:编程语言   时间:2014-05-24 20:24:10    阅读次数:365
lua入门之一:c/c++ 调用lua及多个返回值得获取
当 Lua 调用 C 函数的时候,使用和 C 调用 Lua 相同类型的栈来交互。C 函数从栈中获取她的参数,调用结束后将返回结果放到栈中。为了区分返回结果和栈中的其他的值,每个 C 函数还会返回结果的个数(the  function  returns  (in  C)  the  number  of  results  it  is leaving on the stack.)。 // lua...
分类:编程语言   时间:2014-05-24 19:37:41    阅读次数:372
Android Design 1: Back键和Up键在App导航中的表现
一,概念1,Back键一直存在android系统中1-1任何页面下的返回1-2Floatingwindow1-3ContexualActionbar/highlightselect1-4Keyboard2,Up键是随AndroidDesign出来的。2-1androidDesign定义的parentcontainer2-2app的主界面是不存在Up键的二,情景分析1,App内部1-1沿逐级深入路..
分类:移动开发   时间:2014-05-24 17:06:16    阅读次数:317
I Take It All Back: Using Windows Installer (MSI) Rollback Actions
Original Link: http://blogs.flexerasoftware.com/installtalk/2011/10/i-take-it-all-back-using-windows-installer-msi-rollback-actions.html#sthash.KIIUKl...
分类:Windows程序   时间:2014-05-24 12:35:36    阅读次数:603
解释杨中科随机数为什么会骗人?
当你在Stack Overflow网站标题中看到“随机”这个词你基本可以确定这是相同的基本问题无数的相似问题。本文带你探讨为什么随机性会引起这么多问题并且如何解决它们。Stack Overflow (or newsgroup, or mailing list etc) )网站的问题通常是这样的:我使...
分类:其他好文   时间:2014-05-24 11:58:28    阅读次数:288
MongoDB连接数与连接优化
默认每个连接数占用10M内存ulimit -a 查看stack sizeMongoDB服务器内存要满足 connection overhead + data size + index size即连接数开销+热点数据+索引连接数太多的问题:如果在日志中遇到类似如下的错误信息:"too many ope...
分类:数据库   时间:2014-05-24 11:18:25    阅读次数:378
stack2
#includeusing namespace std;template class Stack{ private: struct Node{ Object data; Node * next; Node(cons...
分类:其他好文   时间:2014-05-24 09:32:25    阅读次数:215
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!