在C++中,可以直接使用std::stackC语言实现如下: 1 stack.c 2 3 /** 4 * @file stack.c 5 * @brief 栈,顺序存储. 6 * 7 * 8 * 9 */ 10 11 #include /* for malloc() *...
分类:
编程语言 时间:
2015-03-13 10:53:40
阅读次数:
165
This brief code example to illustrates how you can capture video and convert the frames you get toUIImageobjects. It shows you how to:Create anAVCaptu...
分类:
移动开发 时间:
2015-03-05 14:36:08
阅读次数:
214
今天花了一个半小时,实现两个动画效果:浮入与劈裂。浮入效果头文件enum CbwFloatDirection { // 浮入方向cfdUp = 0, // 上浮cfdDown = 1 // 下浮};/*** @class TCbwAnimationEffect_ FloatIn* @brief 动画...
分类:
其他好文 时间:
2015-03-05 12:23:20
阅读次数:
181
SVM1.概述?\Rightarrow brief introductionSVM全称Support_Vector_Machine,即支持向量机,是机器学习中的一种监督学习分类算法,一般用于二分类问题。对于线性可分的二分类问题,SVM可以直接求解,对于非线性可分问题,其也可以通过核函数将低维映射到高维空间从而转变为线性可分。对于多分类问题,SVM经过适当的转换,也能加以解决。相对于传统的分类算法如l...
分类:
其他好文 时间:
2015-03-05 00:26:34
阅读次数:
316
在动画基类的基础上,再实现各种动画效果,只需专注于各种逻辑实现,倒也不是太难的事。
今天实现第二个动画效果-飞入。
1. 飞入效果
代码很少,因为只需要确定不同时间的位置,故只重载BuildDisplayRect:
头文件
/**
*@class TCbwAnimationEffect_ FlyIn
*@brief 动画基类
*
* 处理飞入动画效果
*@autho...
分类:
其他好文 时间:
2015-03-04 19:14:46
阅读次数:
148
在动画基类的基础上,再实现各种动画效果,只需专注于各种逻辑实现,倒也不是太难的事。今天实现第二个动画效果-飞入。飞入效果代码很少,因为只需要确定不同时间的位置,故只重载BuildDisplayRect:头文件/*** @class TCbwAnimationEffect_ FlyIn* @brief...
分类:
其他好文 时间:
2015-03-04 18:40:36
阅读次数:
201
class Logger{public: /** *@brief 获取Logger实例 */ static Logger* Instance() { if (!ms_pInstance) ms_pInstance = new Lo...
分类:
其他好文 时间:
2015-02-25 22:23:11
阅读次数:
168
Bug 4352808 - Dump (kglpnal) / OERI:17252 / crash from PQ with TYPE columns (文档 ID 4352808.8) 转到底部Bug 4352808 Dump (kglpnal) / OERI:17252 / crash from PQ with TYPE columns
This note gives a brief...
分类:
其他好文 时间:
2015-02-15 12:12:39
阅读次数:
134
[html] view
plaincopyprint?
/*!
* @brief 把格式化的JSON格式的字符串转换成字典
* @param jsonString JSON格式的字符串
* @return 返回字典
*/
+ (NSDictionary *)dictionaryWithJsonString:(NSString *)...
分类:
移动开发 时间:
2015-02-10 18:46:52
阅读次数:
159
如下命令:将过滤后的日志按照指定格式输出到指定的文件中adb logcat -v time -s Test_Tag:v > logcat_local.txtA:其中 -v time 用来指定日志的格式,还有如下选择brief: 显示优先级/标记和原始进程的PID (默认格式)proc...
分类:
其他好文 时间:
2015-02-10 18:41:03
阅读次数:
154