Ubuntu:apt-get -y install build-essential
automake autoconf git-core wget libtoolapt-get -y install libncurses5-dev
libtiff-dev libjpeg-dev zlib1g-dev...
分类:
其他好文 时间:
2014-06-07 02:50:29
阅读次数:
266
1.Cocoa-4th 的 Chapter2 - Random 制作方法
STEP 1
New Application
STEP2
MainMenu.xib
增加控件:2个按钮Square Button (NSButton),1个标签Label (NSTextField)
STEP3
Add Files: Objective-C Class 类型 ,命名为:Random
选...
分类:
其他好文 时间:
2014-06-05 08:54:35
阅读次数:
258
Once an algorithm is given for a problem and
decided to be correct, an important step is to determine how much in the way of resources,such as time or space, the algorithm will require.
...
分类:
其他好文 时间:
2014-06-05 02:14:29
阅读次数:
306
简单深搜,可以完全暴力,不会超时的。#include#include#includeusing
namespace std;#define MAX(a,b) (a>b?a:b) char maze[10][10];int n, maxn;void
DFS(int step,int count);in...
分类:
Web程序 时间:
2014-06-04 20:43:04
阅读次数:
270
Given two wordsword1andword2, find the minimum
number of steps required to convertword1toword2. (each operation is counted as 1
step.)You have the fol...
分类:
其他好文 时间:
2014-06-04 20:12:15
阅读次数:
199
Implementint sqrt(int x).Compute and return the
square root
ofx.classSolution{public:intsqrt(intx){inti=0;intstep=1;while(step>0){while((i+step)>1);}r...
分类:
其他好文 时间:
2014-06-04 19:54:17
阅读次数:
214
Given a triangle, find the minimum path sum
from top to bottom. Each step you may move to adjacent numbers on the row
below.For example, given the fol...
分类:
其他好文 时间:
2014-05-30 14:59:37
阅读次数:
241
需求 编写程序模拟矩阵乘法,一个m*n的矩阵,乘以一个 n*m 的矩阵,
并且输出结果。STEP 1 矩阵乘法的计算 一个m行n列的矩阵与一个n行p列的矩阵可以相乘,得到的结果是一个m行p列的矩阵。
其中乘积矩阵的第i行第j列位置上的数,为第一个矩阵第i行上的n个数与第二个矩阵第j列上的n...
分类:
编程语言 时间:
2014-05-29 23:16:55
阅读次数:
337
MONO DeBuggerMac上支持1:USB连线调试,WIFI调试2:Debug
可以调试进去封装好的类库 (要在Debugger中开启类库调试)(Debug project code only;do not step into
framework code.)生成调试版本比发布版本更加久Mon...
分类:
移动开发 时间:
2014-05-29 13:28:12
阅读次数:
246
需求 要求输出1~n2的自然数构成的魔方阵。STEP 1 什么是魔方阵?
魔方阵,古代又称“纵横图”,是指组成元素为自然数1、2…n2的平方的n×n的方阵,其中每个元素值都不相等,且每行、每列以及主、副对角线上各n个元素之和都相等。STEP
2 魔方阵的规律是什么? 此处先写简单一点的奇阶...
分类:
其他好文 时间:
2014-05-28 00:09:53
阅读次数:
363