上一页 1 ··· 125 126 127 128 129 130 131 132 133 ··· 329 下一页
摘要: Colored SticksTime Limit: 5000MSMemory Limit: 128000KTotal Submissions: 27134Accepted: 7186DescriptionYou are given a bunch of wooden sticks. Each endpoint of each stick is colored with some color. Is it possible to align the sticks in a straight line such that the colors of the endpoints that touch 阅读全文
posted @ 2013-07-13 20:21 jlins 阅读(192) 评论(0) 推荐(0)
摘要: 汇总一些ubuntu相关的问题1.Ubuntu支持安装多媒体播放插件(新系统安装后必备)ubuntu-restricted-extraspackage allows users to install ability to play popular non-free media formats, including DVD, MP3, Quicktime, and Windows Media formats. sudo apt-get install ubuntu-restricted-extras 2.VirtualBox is not currently allowed to access. 阅读全文
posted @ 2013-07-13 20:20 jlins 阅读(130) 评论(0) 推荐(0)
摘要: 对于未引用参数的警告的解决方法,前两种是风格上的区别:1注释掉未使用的形参名intFuncXXX(intnArg1,int/*nArg2*/){ReturnnArg1+2;}2使用UNREFERENCED_PARAMETER宏intFuncXXX(intnArg1,intnArg2){UNREFERENCED_PARAMETER(nArg2);ReturnnArg1+2;}3使用pragma抑制编译器警告(1) #pragmawarning(disable:4100)使用#pragmawarning(default:4100)重新启用(2)在代码中抑制单个函数的未引用警告#pragmawarn 阅读全文
posted @ 2013-07-13 20:18 jlins 阅读(278) 评论(0) 推荐(0)
摘要: 1367: [Baltic2004]sequenceTime Limit:20 Sec Memory Limit:64 MB Submit:521 Solved:159 [ Submit][ Status] Description Input Output 一个整数R Sample Input 7 9 4 8 20 14 15 18 Sample Output 13 HINT所求的Z序列为6,7,8,13,14,15,18. R=13 左偏树+1这题裸裸的左偏树,我却各种WA。。。。结果发现 左偏树合并 a*b==0 会乘爆掉。。。掉节操。。。。。#... 阅读全文
posted @ 2013-07-13 20:16 jlins 阅读(397) 评论(0) 推荐(0)
摘要: 本文使用的是cocos2d-x-2.1.4版本 ,截至目前为止是最新稳定版 所谓的开发环境就是制作游戏的地方,打个比方读者就会十分清楚了。比如提到做饭,人们都会想到厨房。这是因为厨房有炉灶、烟机、水盆以及其他工具。这就是一个做饭的环境。很有有人会在卧室炒菜做饭吧!同样的,游戏开发也需要一个制作环境。这个环境包含了编辑器、程序库、打包工具以及设备连接。接下来就教大家开始配置开发环境。不过配置环境之前要先去Cocos2d-X的官方网站下载Cocos2d-x,截至到目前为止,最新版的版本是cocos2d-x-2.1.4下载地址:http://www.cocos2d-x.org/projects/co 阅读全文
posted @ 2013-07-13 20:14 jlins 阅读(304) 评论(0) 推荐(0)
摘要: 给navigationItem中添加个搜索栏,效果和大部分程序一样。代码如下: UISearchBar *searchBar = [[UISearchBaralloc] initWithFrame:CGRectMake(0, 0, 200, 28)]; searchBar.backgroundImage = [UIImageimageNamed:@"btu_search"]; searchBar.placeholder = @"搜索"; searchBar.delegate = self; UIBarButtonItem *searchButton = 阅读全文
posted @ 2013-07-13 20:12 jlins 阅读(376) 评论(0) 推荐(0)
摘要: 回顾前面的文章,实现了一个简单工厂模式来创建不同类对象,但由于c++没有类似new "Circle"之类的语法,导致CreateShape 函数中需要不断地ifelse地去判断,如果有多个不同类对象需要创建,显然这是很费神的,下面通过宏定义注册的方法来实现动态创建对象。 Shape.h: C++ Code 1 2 3 4 5 6 7 8 9 10 11 12 13 ... 阅读全文
posted @ 2013-07-13 20:10 jlins 阅读(279) 评论(0) 推荐(0)
摘要: 传送门☞Android兵器谱☞转载请注明☞http://blog.csdn.net/leverage_1229 1.队长和排队长,通常都是随机变量,而且分布不易得到,因此一般考虑其均值和方差等数字特征 2.排队时间和逗留时间,随机变量,顾客最关心的指标 3.忙期和闲期,是服务系统所关心的随机变量指标,主要反映系统的服务强度。忙期和闲期交替出现。 在损失制和混合制服务系统中,还关心诸如顾客损失率、服务强度等指标解排队问题的目的,是研究系统的运行效率,估计服务量,确定系统参数的最优值,以决定系统结构是否合理,研究设计改进措施等。达到此目的的首要任务是研究数量指标的概率规律 业务量 ... 阅读全文
posted @ 2013-07-13 20:08 jlins 阅读(463) 评论(0) 推荐(0)
摘要: Description You are a butler in a large mansion. This mansion has so many rooms that they are merely referred to by number (room 0, 1, 2, 3, etc...). Your master is a particularly absent-minded lout and continually leaves doors open throughout a particular floor of the house. Over the years, you hav 阅读全文
posted @ 2013-07-13 20:06 jlins 阅读(217) 评论(0) 推荐(0)
摘要: 解决SQL查询总是超时已过期 、在WIN8里提示:OLE DB 或 ODBC 错误 : 查询超时已过期; HYT001.由于数据库设计问题造成SQL数据库新增数据时超时 症状:  Microsoft OLE DB Provider for SQL Server 错误 '80040e31' ([ODBC SQL Server Driver]超时已过期);  服务器上看CPU、内存占用率很低;  事件日志中提示: 数据库 '*********' 中文件 '***********' 的自动增长在 453 毫秒后已取消或出现超时。使用 ALTER 阅读全文
posted @ 2013-07-13 20:04 jlins 阅读(10956) 评论(0) 推荐(0)
上一页 1 ··· 125 126 127 128 129 130 131 132 133 ··· 329 下一页