//震动效果- (void)shake:(UIView *)view{ CGRect frame = view.frame; CAKeyframeAnimation *shakeAnimation = [CAKeyframeAnimation animationWithKeyPath:@...
分类:
其他好文 时间:
2014-11-27 21:54:26
阅读次数:
201
Evaluate the value of an arithmetic expression in Reverse Polish Notation.
Valid operators are +, -, *, /.
Each operand may be an integer or another expression.
Some examples:
["2", "1", ...
分类:
其他好文 时间:
2014-11-27 14:42:26
阅读次数:
197
数据结构实验之栈三:后缀式求值Time Limit: 1000MS Memory limit: 65536K题目描述对于一个基于二元运算符的后缀表示式(基本操作数都是一位正整数),求其代表的算术表达式的值。输入输入一个算术表达式的后缀式字符串,以‘#’作为结束标志。输出求该后缀式所对应的算术表达式的...
分类:
其他好文 时间:
2014-11-27 14:18:14
阅读次数:
114
4.2Givenadirectedgraph,designanalgorithmtofindoutwhetherthereisaroutebetweentwonodes.Node
{
List<Node>neighbours;
}
booleanisConnected(Nodefrom,Nodeto)
{
Stack<Node>toVisit=initStack();
Set<Node>seen=initSet();
toVisit.push(from);
while..
分类:
其他好文 时间:
2014-11-27 08:05:32
阅读次数:
147
1
电脑装成Linux之后,在Linux里面装虚拟机运行cocos2d-x-3.2时报如下错误:
plan3d.exe!cocos2d::GLView::initWithRect(const std::basic_string,std::allocator > & viewName, cocos2d::Rect rect,
float frame...
分类:
数据库 时间:
2014-11-27 06:49:13
阅读次数:
178
一、预备知识—程序的内存分配 一个由C/C++编译的程序占用的内存分为以下几个部分 1、栈区(stack)— 由编译器自动分配释放 ,存放函数的参数值,局部变量的值等。其 操作方式类似于数据结构中的栈。 2、堆区(heap) — 一般由程序员分配释放, 若程序员不释放,程序结束时可能由OS回 收 。...
分类:
其他好文 时间:
2014-11-27 01:30:42
阅读次数:
163
本文是自己学习zigbee时的知识梳理。参考书:《ZigBee技术与实训教程--基于CC2530的无线传感网技术》----姜仲、刘丹 编著Z-stack中提供了两种方式采集按键数据:轮询方式和中断方式。轮询方式:每隔一定时间,检测按键状态,进行相应处理;中断方式:按键引起按键中断,进行相应处理。Zs...
分类:
其他好文 时间:
2014-11-26 23:52:26
阅读次数:
654
最近在研究android framework层的开发。 先来一张frame work的源码结构图...
分类:
移动开发 时间:
2014-11-26 19:01:03
阅读次数:
155
Lisa
这个傲娇的计算器叫Lisa。
/*********************************************************
Code writer : EOF
Code file : stack.h
Code date : 2014.11.26
Email : jasonleaster@gmail.com
...
分类:
其他好文 时间:
2014-11-26 18:54:48
阅读次数:
221
m位长度,S为各位的和利用贪心的思想逐位判断过去即可详细的注释已经在代码里啦~//#pragma comment(linker, "/STACK:16777216") //for c++ Compiler#include #include #include #include #include #in...
分类:
其他好文 时间:
2014-11-26 18:35:55
阅读次数:
125