Compile Error: The code in this project must be updated for use on64-bit systems. Please review and update Declare statements and then mark them with ...
分类:
编程语言 时间:
2015-02-27 14:48:14
阅读次数:
462
题意:给你编号为1到n个钱币,其中有一个是假的,k次称量结果,判断并输出假币的编号,不能判断输出0。
分析:
1.等号‘=’两边全为真币。
2.假币不可能既偏重又偏轻。
3.几次不等的称量假币就出现几次。
AC代码:
#include
#include
#define max 1003
int mark[max];
struct node
{
int s;...
分类:
其他好文 时间:
2015-02-27 13:36:47
阅读次数:
160
在做一个后台管理系统的自动化测试,在登录时遇到了一些问题,比如浏览器认为当前url不安全,会有一个拦截,无法直接打开登录页面。这里用到了driver.navigate().to()方法,特此mark下。下面是查询资料的收获:最近用一个实际的web项目在学习Webdriver,关于新建一个备份任务的过...
分类:
Web程序 时间:
2015-02-26 17:59:22
阅读次数:
111
导读:互联网电视游戏网站PlayCafe的创始人马克·高登森(Mark Goldenson)日前撰文,总结了自己创业失败的十个教训。以下为文章主要内容: 一年半前,我与公司联合创始人戴维·奈格(Dev Nag)一起创办了互联网电视游戏网站PlayCafe,我们野心勃勃地希望运营一个人人参与且高度交....
分类:
其他好文 时间:
2015-02-24 19:48:50
阅读次数:
193
Guilt should only be a call to action.When we see that we "missed the mark"(the meaning of sin in the original biblical Greek) we only need to correct...
分类:
其他好文 时间:
2015-02-20 20:52:13
阅读次数:
165
由美国科幻小说作家Andy Weir创作的“The Martian”(”火星人“)热销美国,影响非常大。该书的主人翁马克—怀特(Mark Wathey)就是所谓的“火星人”。 该书的主要情节是说,马克在火星上的奇遇,怎样死里逃生。故事一開始,在火星人居住地(Hab)周边,刮起沙尘暴,马克被同事们误....
分类:
其他好文 时间:
2015-02-20 20:48:27
阅读次数:
188
#pragma mark 绘制圆弧-(void) drawArc:(CGContextRef)context{ //1.设置路径 /** 1)context 上下文 2)x,y 圆弧所在圆的中心点坐标 3)radius 半径 4)startAngle en...
分类:
其他好文 时间:
2015-02-17 12:53:21
阅读次数:
137
#pragma mark 绘制图像-(void)drawImage:(CGContextRef)context{ UIImage *image = [UIImage imageNamed:@"1.png"]; //提示:绘制之后,就无法改变位置,也没有办法监听手势 ...
分类:
其他好文 时间:
2015-02-17 12:51:55
阅读次数:
194
#pragma mark 绘制图像-(void)drawImage:(CGContextRef)context{ UIImage *image = [UIImage imageNamed:@"1.png"]; //提示:绘制之后,就无法改变位置,也没有办法监听手势 ...
分类:
其他好文 时间:
2015-02-17 12:49:53
阅读次数:
137
#pragma mark 绘制文字(中文)-(void)drawText2:(CGContextRef)context{ NSString *string = @"博阿士大夫撒风景撒开了房间撒"; //1.获取字体 NSLog(@"%@",[UIFont familyNames])...
分类:
其他好文 时间:
2015-02-17 12:49:38
阅读次数:
117