Hello
world开始。这里不讨论如何创建项目导入项目。由于趁上班时间打酱油所以也不谈细节, 只谈具体项目的实现与关键流程的解析,
只供本人实际程况使用。不喜请移驾。首先来谈谈AppDelegate.h与AppDelegate.m 文件AppDelegate.h:#import @class
B...
分类:
移动开发 时间:
2014-05-24 02:16:56
阅读次数:
290
The "." command is one of the most simple yet
powerful commands in Vim. Itrepeats the last change. For instance, suppose you
are editing an HTML filea...
分类:
其他好文 时间:
2014-05-23 22:52:50
阅读次数:
372
接着下来简单说说Label(相当于android的textview)和button的使用,
由于都是与上篇的AppDelegate一致, 所以这一篇就说说ViewController与xib的使用呗。BIDViewController.h#import
@interface BIDViewContr...
分类:
移动开发 时间:
2014-05-23 12:37:14
阅读次数:
399
题意:每次筛三个骰子面分别为k1,k2,k3,如果三个骰子的值分别为a,b,c则得分置0,否则得到分数加上三个骰子的值的和,如果得分大于等于n则结束游戏。设E[i]表示当前得到i分时结束游戏的期望。则E[i]=sum{Pk*(E[i+k]+1)|k为三个骰子可能取得的分数且不包括a,b,c这种情况}...
分类:
其他好文 时间:
2014-05-23 11:48:09
阅读次数:
303
There are N children standing in a line. Each child is assigned a rating value.
You are giving candies to these children subjected to the following requirements:
Each child must have at least one candy.
Children with a higher rating get more candies than...
分类:
其他好文 时间:
2014-05-22 11:00:49
阅读次数:
285
#include
using namespace std;
class Date
{
public:
Date(int y=0,int m=0,int d=0);
void SetDate(int y,int m,int d);
void PrintDate();
protected:
int year;
int month;
int day;
}...
分类:
其他好文 时间:
2014-05-22 08:36:19
阅读次数:
201
DWORD WINAPI mythread( LPVOID lpParameter) //客户线程{ struct My my; memcpy(&my,lpParameter,sizeof(My)); printf("One client connect!\n"); char str1; ......
分类:
其他好文 时间:
2014-05-22 06:31:02
阅读次数:
319
【题目】
Write a program to solve a Sudoku puzzle by filling the empty cells.
Empty cells are indicated by the character '.'.
You may assume that there will be only one unique solution.
A sudoku puzzle...
...and its solution numbers marked in red.
...
分类:
其他好文 时间:
2014-05-20 17:07:34
阅读次数:
335
题目:
Given an array of integers, every element appears
three times except for one. Find that single one.
Note:
Your algorithm should have a linear runtime complexity. Could you implem...
分类:
其他好文 时间:
2014-05-20 16:22:52
阅读次数:
241
戳我去解题Given a non-negative number represented as an
array of digits, plus one to the number.The digits are stored such that the most
significant digit ...
分类:
其他好文 时间:
2014-05-20 10:42:14
阅读次数:
244