码迷,mamicode.com
首页 >  
搜索关键字:end event    ( 41611个结果
epoll函数及三种I/O复用函数的对比
epoll函数#include int epoll_create(int size)int epoll_ctl(int epfd, int op, int fd, struct epoll_event *event)int epoll_wait(int epfd,struct epoll_event...
分类:其他好文   时间:2014-05-06 00:21:30    阅读次数:519
[ISSUE]Lambda binding for lua is not supported.
环境: cocos2d-x + lua 3.0beta2想使用CCNotification, 发现3.0已经替换为CCEvent, 晃了一眼设计,不错原来在C++ 上自己也实现了一套Event,因为不满意CCNotification 没有优先级,没有自定义分类(比如UI,Logic),不能携带数据,...
分类:其他好文   时间:2014-05-05 23:39:31    阅读次数:1327
二分排序之三行代码
#include #include int a[]={10,22,42,51,56,63,78,99,102,118}; int binSearch(int* a, int begin, int end, int k){ int mid = begin + ( (end - be...
分类:其他好文   时间:2014-05-05 23:31:39    阅读次数:257
JavaScript判断图片是否加载完成的三种方式
有时需要获取图片的尺寸,这需要在图片加载完成以后才可以。有三种方式实现,下面一一介绍。一、load事件 img - load event loading... 测试,所有浏览器都显示出了“loaded”,说明所有浏览器都支持img的load事件。二、readystatechange事件 ...
分类:编程语言   时间:2014-05-03 22:18:43    阅读次数:430
JBPM学习(六):详解流程图
概念: 流程图的组成: a. 活动 Activity / 节点 Node b. 流转 Transition / 连线(单向箭头) c. 事件   1.流转(Transition) a) 一般情况一个活动中可以指定一个或多个Transition i. 开始活动(Start)中只能有一个Transition。 ii. 结束活动(End)中没有Transitio...
分类:其他好文   时间:2014-05-03 20:53:19    阅读次数:311
第八章 用户界面(四)
第八章 用户界面(四) 处理 WinForms 事件和事件模块   在第七章我们讨论过事件(Event)模块,它能够用于处理 WinForms 中的事件。当处理 WinForms 中的事件时,通常会遇到没有完全符合想要事件的情况。例如,当鼠标的左、右键单击时会触发MouseButton 事件,但是,我们可能只希望它响应鼠标左键的单击。这时,用 Event.filter 函数可...
分类:其他好文   时间:2014-05-03 20:52:28    阅读次数:279
Oracle ——存储过程——分页
输入:表名、每页显示的记录数、当前页输出:总记录数、总页数、结果集--首先,创建一个包,定义游标类型CREATE OR REPLACE PACKAGE fenye_package ISTYPE fenye_cursor IS REF CURSOR;END fenye_package; --输入:表名...
分类:数据库   时间:2014-05-02 22:02:04    阅读次数:411
ZOJ 3612 Median (multiset)
Factorial Problem in Base K Time Limit: 2 Seconds      Memory Limit: 65536 KB How many zeros are there in the end of s! if both s and s! are written in base k which is not necessarily to be 10...
分类:其他好文   时间:2014-05-02 20:11:29    阅读次数:376
字符串或者数字数组全排列
//字符串全排列package com.demo.acm;public class AllSortChar { public static void allSort(char[] buf,int start,int end){ if(start==end){ ...
分类:其他好文   时间:2014-05-02 19:43:21    阅读次数:256
Lua--for循环控制结构
“参考Lua游戏开发实践指南” Lua提供两种控制结构(数字型和通用型)--Lua中的for语句的索引是从1开始的 数字型: 一个简单的示例如下1 for indx = 1, 10 do2 print(indx)3 end do关键字标记程序块的开始,end标记程序块的结束。 ...
分类:其他好文   时间:2014-05-02 17:26:51    阅读次数:702
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!