最近因为需求变动,原来用的公共标签不能够满足需求了,遂速写了一款标签。。 下面是主要代码(用了masonry):- (void)makeLableViewWithArray:(NSMutableArray *)arrServiceEst{ WS(ws) UIView *aView = [...
分类:
移动开发 时间:
2015-09-21 10:37:08
阅读次数:
164
1:第一个程序 : hello world#include int main(void){ printf("Hello , world ! \n"); return 0;}编译: gcc -Wall hello.c -o hello2:调试错误 : debug.c#include int main(...
分类:
其他好文 时间:
2015-09-21 10:35:38
阅读次数:
207
UIView触摸事件touchBegin等一系列方法 1)手指按下 - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event; 2)按下并移动 - (void)touchesMoved:(NSSet *)...
分类:
其他好文 时间:
2015-09-21 10:20:58
阅读次数:
145
#include #include #include #include #include void generate(char computer[]){ int i = 0, j, t; srand(time(NULL)); while (i 0) { putcha...
分类:
编程语言 时间:
2015-09-21 09:13:34
阅读次数:
234
1.Flatten Binary Tree to Linked List 1 //dfs、前序遍历一下即可 2 class Solution { 3 public: 4 void dfs(TreeNode* root, TreeNode* &pre) 5 { 6 if...
分类:
其他好文 时间:
2015-09-21 09:12:20
阅读次数:
166
import java.io.File;import java.io.FileWriter;import java.io.IOException;public class aaa { public static void main(String[] args) { File a ...
分类:
编程语言 时间:
2015-09-21 08:08:21
阅读次数:
191
5。触摸事件 touchBegin 等一系列方法 1)手指按下 - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event; 2)按下并移动 - (void)touchesMoved:(NSSet *)to...
分类:
其他好文 时间:
2015-09-21 08:03:56
阅读次数:
150
今天天气不错,实现个自己的 ls 命令玩玩,现在实现来 -l 参数,以后有空再把其他参数补全:) 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 9 void showls(...
分类:
其他好文 时间:
2015-09-21 06:58:11
阅读次数:
179
总结下学过的排序算法,方便以后用到。1.插入排序——将一个记录插入到已排序好的有序表中,从而得到一个新,记录数增1的有序表。void insertSort(int a[],int len){ for(int i = 1;i 0 && x 0;i --) for(int...
分类:
编程语言 时间:
2015-09-21 06:57:39
阅读次数:
197
用宏定义行高,行宽,行数,列数及间隔#define ROW_COUNT 5#define COLUMN_COUNT 3#define ROW_HEIGHT 100#define ROW_WIDTH ROW_HEIGHT#define CELL_SPACING 10- (void)viewDidLoa...
分类:
移动开发 时间:
2015-09-21 01:32:21
阅读次数:
168