摘要:
直接上代码: /* UILabel 使用 */ UILabel *aLable = [[UILabel alloc] initWithFrame:self.window.bounds]; aLable.backgroundColor = [UIColor cyanColor]; //lable的te 阅读全文
posted @ 2017-08-11 09:30
zsychanpin
阅读(272)
评论(0)
推荐(0)
摘要:
poj 1797 Heavy Transportation Description Background Hugo Heavy is happy. After the breakdown of the Cargolifter project he can now expand business. B 阅读全文
posted @ 2017-08-10 21:53
zsychanpin
阅读(153)
评论(0)
推荐(0)
摘要:
每个iPhone程序都包括唯一一个UIApplication对象,它管理整个程序的生命周期,从载入第一个显示界面開始,而且监听系统事件、程序事件调度整个程序的运行。 int main(int argc, char *argv[]) { NSAutoreleasePool * pool = [[NSA 阅读全文
posted @ 2017-08-10 20:54
zsychanpin
阅读(239)
评论(0)
推荐(0)
摘要:
Search in Rotated Sorted Array Total Accepted: 27955 Total Submissions: 97929My Submissions Suppose a sorted array is rotated at some pivot unknown to 阅读全文
posted @ 2017-08-10 19:58
zsychanpin
阅读(165)
评论(0)
推荐(0)
摘要:
#include <stdio.h> #include <stdlib.h> void inplace_swap(int *x, int *y) { *y = *x ^ *y; *x = *x ^ *y; *y = *x ^ *y; } int main() { int x = 12; int y 阅读全文
posted @ 2017-08-10 19:10
zsychanpin
阅读(290)
评论(0)
推荐(0)
摘要:
求求求 搞搞搞 搞法例如以下:考虑每一个数w[i]w[i]对答案的贡献,呃。。。首先答案一定是∑[...](m3)\sum [...]\over {m\choose 3}的形式,仅仅须要搞分子就好了。然后考虑每一个数 求求求 搞搞搞 搞法例如以下:考虑每一个数w[i]w[i]对答案的贡献,呃。。。首 阅读全文
posted @ 2017-08-10 18:00
zsychanpin
阅读(81)
评论(0)
推荐(0)
摘要:
今天同事向我询问图片压缩的算法。我想起大概两三年前做过的一个项目。当中包括了尺寸和质量两种压缩算法。而且支持JPEG、bmp、PNG等格式。今天把这段逻辑贴出来,供大家參考。(转载请指明来源于breaksoftware的CSDN博客) 尺寸压缩 bool CompressImagePixel( co 阅读全文
posted @ 2017-08-10 17:03
zsychanpin
阅读(854)
评论(0)
推荐(0)
摘要:
一、Nslookup(name server lookup)( 域名查询):是一个用于查询 Internet 域名信息或诊断DNS server问题的工具。nslookup能够指定查询的类型,能够查到DNS记录的生存时间还能够指定使用那个DNSserver进行解释。Nslookup 是一个 监測网络 阅读全文
posted @ 2017-08-10 13:34
zsychanpin
阅读(1226)
评论(0)
推荐(0)
摘要:
N-Queens Total Accepted: 15603 Total Submissions: 60198My Submissions The n-queens puzzle is the problem of placing n queens on an n×n chessboard such 阅读全文
posted @ 2017-08-10 11:59
zsychanpin
阅读(117)
评论(0)
推荐(0)
摘要:
Intent是意图的意思,分为显式 Intent 和隐式 Intent。以下我们试图在FirstActivity中通过点击button来启动SecondActivity 1.显式Intent 在应用中建立两个类,FirstActivity和SecondActivity。分别为它们建立layout布局 阅读全文
posted @ 2017-08-10 11:19
zsychanpin
阅读(251)
评论(0)
推荐(0)
浙公网安备 33010602011771号