码迷,mamicode.com
首页 >  
搜索关键字:custom state    ( 10586个结果
大话设计模式之----状态模式
HourHour ."点 上午工作,精神百倍"; }else{ $w->SetState(new NoonState()); $w->WriteProgram(); } } } //中午工作状态 class NoonState extends State{ public ...
分类:其他好文   时间:2014-07-22 22:57:32    阅读次数:195
[问题]SqlServer创建数据库出错
SqlServer 2008“Msg 1807, Level 16, State 3, Line 1Could not obtain exclusive lock on database ‘model’. Retry the operation later.Msg 1802, Level 16, S...
分类:数据库   时间:2014-07-19 17:28:23    阅读次数:1153
poj1502--Dijkstra
/** \brief poj 1502--Dijkstra * * \ date 2014/7/15 * \ state AC * * */ #include #include #include #include using namespace std; #define inf 0x03f3f3f3f const int MAXN=101; int n; int co...
分类:其他好文   时间:2014-07-18 21:22:31    阅读次数:192
自定义UIView
Whenever we want to add an instance of this custom view to the visible screen, we now need to:load the Nib, andextract the actual view from the array ...
分类:其他好文   时间:2014-07-18 10:15:11    阅读次数:219
Neutron分析(6)—— neutron-openvswitch-agent
neutron-openvswitch-agent代码分析neutron.plugins.openvswitch.agent.ovs_neutron_agent:main# init ovs first by agent_config:# setup plugin_rpc, state_rpc, m...
分类:其他好文   时间:2014-07-18 00:28:37    阅读次数:434
Loadrunner接口测试-发送JSON格式的请求
昨天接到了一个测试接口的任务,接口的请求参数和返回结果均是JSON字符串,先是使用了函数web_submit_date,执行时报错,查询资料没找到原因,不知道是不是不支持JSON串,有兴趣的可以自己试下。然后尝试用web_custom_request函数,执行后返回的结果都正确,ok,就它了。web_cu..
分类:Web程序   时间:2014-07-17 21:13:24    阅读次数:594
jQuery 自定义选择器
严格来说是自定义伪类选择器,不过也相当有意思了。昨天我学习其中一个 jquery lazy load 源码的时候,看到末尾这么写的。/* Custom selectors for your convenience. 译: 提供自定义选择方便你使用。 *//* Use as $("img:below....
分类:Web程序   时间:2014-07-16 18:05:26    阅读次数:277
斯坦纳树
斯坦纳树是一类比较特殊的DP吧,主要针对点集连通问题,通常dp[i][s]表示以i为根的,连通状态为s的一棵树的最小权值,有两种转移方式, 其中state[i]表示点i的二进制标号,通常无关的点state值为0, dp[i][s] = min{dp[i][s], dp[i][j] + dp[i][k...
分类:其他好文   时间:2014-07-16 17:44:01    阅读次数:247
Socket异步存储示例
异步客户端存储示例:using System;using System.Net;using System.Net.Sockets;using System.Threading;using System.Text;// State object for receiving data from remo...
分类:其他好文   时间:2014-07-16 12:25:32    阅读次数:375
poj1251--Kruskal
/* * poj1251-- Kruskal * date 2014/7/15 * state AC */ #include #include #include #include #include using namespace std; int const MAXN=30+100; int u[MAXN]; int v[MAXN]; int w[MAXN+50]; int p[...
分类:其他好文   时间:2014-07-16 10:34:41    阅读次数:180
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!