一、简单介绍代码示例: 1 #import "YYViewController.h" 2 #import "ASIHTTPRequest.h" 3 4 @interface YYViewController () 5 6 7 @end 8 9 @implementation YYViewCo...
分类:
移动开发 时间:
2015-04-30 19:36:01
阅读次数:
132
Mac OSX,Xcode,Home,End快捷键
#include
using namespace std;
//指定一个位置开始,然后每隔k个位置剔除一个元素,输出最后剩余的元素。
//相当于所有数据绕成一圈,按k个位置长度剔除数据,当只剩一个时,游戏结束,得到结果.
int Grial(int a[],int end,int start,int k)
{
int n = end;
int i = start;
while(n>1)
...
分类:
编程语言 时间:
2015-04-30 18:19:04
阅读次数:
94
SQL> create or replace procedure sp_guocheng1 is--如果有这个名字就替换 2 begin--执行部分 3 insert into guocheng values('liyifeng','liyifeng'); 4 end; 5 / --执行的意思Pro...
分类:
数据库 时间:
2015-04-30 18:06:40
阅读次数:
252
异步请求使用与同步和队列式异步请求相同的对象,只不过又增加了另一个对象,即NSURLConnectionDelegate:
上代码:#import "ViewController.h"NSInteger totalDownLoaded = 0;@interface ViewController ()@end@implementation ViewController- (void)viewDidL...
分类:
移动开发 时间:
2015-04-30 16:09:31
阅读次数:
117
# netstat -an | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'TIME_WAIT 22387CLOSE_WAIT 11SYN_SENT 1FIN_WAIT1 1ESTABLISHED 423LISTEN 73# nets...
分类:
其他好文 时间:
2015-04-30 15:47:52
阅读次数:
124
问题:如何同时让表格同一行一个单元格的文字能垂直居中?比如说文字超长超出页面范围需要分行显示答:(来源于smth)方案一:\newcommand{\tabincell}[2]{\begin{tabular}{@{}#1@{}}#2\end{tabular}}%然后使用&\tabincell{c}{}...
分类:
其他好文 时间:
2015-04-30 14:01:17
阅读次数:
347
1 local demo = {"demoValue"} 2 local function fun() 3 print"hello world" 4 end 5 local tableDemo = { 6 ["a3132t"] = "valide?", 7 ...
分类:
其他好文 时间:
2015-04-30 13:59:26
阅读次数:
120
这是杭电OJ的第1000题,这一题其实很简单,但是注意:本题在题目中Process to end of file,还有下面For each case,所以说本题有多种测试情况,不能简单的测试一个用例就结束了,下面是我的c++提交的一个版本。#includeusing namespace std;in...
分类:
其他好文 时间:
2015-04-30 10:34:31
阅读次数:
95
题目:Given a linked list, remove thenthnode from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After...
分类:
其他好文 时间:
2015-04-30 10:22:31
阅读次数:
86