码迷,mamicode.com
首页 >  
搜索关键字:state    ( 7806个结果
泛函编程(17)-泛函状态-State In Action
对OOP编程人员来说,泛函状态State是一种全新的数据类型。我们在上节做了些介绍,在这节我们讨论一下State类型的应用:用一个具体的例子来示范如何使用State类型。以下是这个例子的具体描述:模拟一个自动糖果贩售机逻辑:贩售机有两种操作方法:投入硬币和扭动出糖旋钮。贩售机可以处于锁定和放开两.....
分类:其他好文   时间:2015-03-27 23:53:28    阅读次数:141
Html5游戏之KiwiJs(4)-资源加载进度
Kiwi.js中资源的加载是在Kiwi.State.preload方法中进行的,而关于加载进度State中有另外一个方法loadProgress来实现,所以要实现进度百分比显示,只需要重写loadProgress方法即可。...
分类:Web程序   时间:2015-03-21 23:00:47    阅读次数:360
android的唯一性
1.IMEITelephonyManagertM=(TelephonyManager)this.getSystemService(Context.TELEPHONY_SERVICE);Stringimei=tM.getDeviceId();Log.v("ola_log","imei:"+imei);权限:<uses-permissionandroid:name="android.permission.READ_PHONE_STATE"/>说明:手机的IMEI值缺点:有..
分类:移动开发   时间:2015-03-21 21:25:34    阅读次数:190
隐马尔科夫模型
特征向量:跟踪框位置相对轨迹中心的比值,角度,速度。马尔科夫模型:State Sequence, q1 q2 ...... qTt个状态之间的转移可见,则这个时间序列的概率是πq1 × aq1q2 × ...... × aqT-1qT隐马尔科夫模型:状态不可见(隐藏),只能从观察值推测出,所以由观察...
分类:其他好文   时间:2015-03-21 01:06:22    阅读次数:222
一个简易状态机的实现
//Test.cpp:Definestheentrypointfortheconsoleapplication.//#include"stdafx.h"#include<iostream>usingnamespacestd;classCEventBase{ virtualvoiddummy(){};};classCStateBase{public: virtualvoidnext(CEventBase*e){}};#defineDEFINE_STATE(state)template<type..
分类:其他好文   时间:2015-03-20 18:56:54    阅读次数:153
statefule goroutines _ golang
In the previous example we used explicit locking with mutexes to synchronize access to shared state across multiple goroutines. Another option is to u...
分类:其他好文   时间:2015-03-20 16:06:28    阅读次数:181
CentOS 7 nfs客户端挂载问题
配置nfs服务器时,服务器端挂载没有问题,但是客户端挂载时提示:mount.nfs: Connection timed out解决方法1:关闭firewalld # systemctl stop firewalld # firewall-cmd --state not running 解决方法2:r...
分类:其他好文   时间:2015-03-20 14:18:31    阅读次数:216
hdu 1455 Sticks DFS 又是一个花样剪枝 ,累觉不爱
Problem Description George took sticks of the same length and cut them randomly until all parts became at most 50 units long. Now he wants to return sticks to the original state, but he forgot how many sticks he had originally and how long they were origin...
分类:其他好文   时间:2015-03-20 11:05:11    阅读次数:129
sql 防注入插入
1 var strsql = "insert into Staff_Answer (ExamTitleID,QuestionsID,MultipleChoice,RightOption,AnswerOption,IsRight,Score,StaffScore,Remark,State,Crea.....
分类:数据库   时间:2015-03-20 01:17:50    阅读次数:157
HDU 1520 Anniversary party(DFS或树形DP)
Problem Description There is going to be a party to celebrate the 80-th Anniversary of the Ural State University. The University has a hierarchical structure of employees. It means that the supervi...
分类:其他好文   时间:2015-03-19 22:02:07    阅读次数:105
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!