1.文本size的计算方法1 NSDictionary *dict = @{NSFontAttributeName: NJTextFont};2 CGSize maxSize = CGSizeMake(200, MAXFLOAT);3 CGSize textSize = [_mes...
分类:
移动开发 时间:
2015-04-15 22:46:56
阅读次数:
170
数据结构基础 最简单的部分 顺序链表实际就是个结构体数组 代码如下 比较简单 1 #include "stdio.h" 2 #include "string.h" 3 #define MAXSIZE 100 4 5 6 7 typedef struct 8 { 9 c...
分类:
其他好文 时间:
2015-04-15 18:27:47
阅读次数:
145
#include "stdio.h"#include "string.h"#define MAXSIZE 100typedef struct{ char key[15]; char name[20]; int age;}DATA;typedef struct { DATA ListData[MAXS...
分类:
其他好文 时间:
2015-04-15 13:23:57
阅读次数:
107
#includeusing namespace std;#define Maxsize 100class Date{public: int date[Maxsize + 1]; /*存储时按照1到n下标存储,空出下标为0的位置*/};int mindsearch(Date&A, int k, int...
分类:
其他好文 时间:
2015-04-15 00:57:12
阅读次数:
112
【数据结构】二叉树层次遍历package 蓝桥练习;public class 二叉树层次遍历 { public static int MAXSIZE = 100; public static Node queue[] = new Node[MAXSIZE]; public static void main(String[] args) {
Node h = new...
分类:
其他好文 时间:
2015-04-13 09:40:58
阅读次数:
134
给出两个整数,L和R,其中L 2 #include 3 #include 4 #include 5 #include 6 #define MAXSIZE (1000) 7 /* 8 求两个数的最大异或值。 9 */ 10 11 12 /* 13 * 14 ...
分类:
编程语言 时间:
2015-04-12 23:57:52
阅读次数:
249
#includeusing namespace std;#define Maxsize 100class Qune{public: int data[Maxsize]; int front; int rear;};void Qinsert(Qune&A,int x); //入队int Qdelet....
分类:
编程语言 时间:
2015-04-10 21:51:12
阅读次数:
183
顺序表要点顺序表是在计算机内存中以数组的形式保存的线性表,是指使用一组地址连续的存储单元依次存储数据元素的线性结构。顺序表的存储结构可表示如下:#define MAXSIZE 10typedef int ElemType;typedef struct { // 顺序表的结构类型 ElemType d...
分类:
编程语言 时间:
2015-04-10 19:46:41
阅读次数:
173
代码: 1 fileName = $fileName; 17 $this->fileInfo = $_FILES [$this->fileName]; 18 $this->maxSize = $maxSize; 19 $this->allowMime...
分类:
Web程序 时间:
2015-04-10 13:27:04
阅读次数:
189
***用一个数组表示两个堆栈,最大限度的利用空间0123若果像右图中从中间分成两部分,则可能存在其中一个堆栈满了,而另一个堆栈还有空的,为你最大限度的利用空间,需要两边像中间长,知道指针碰头表示堆栈已满#includeusing namespace std;#define Maxsize 100cl...
分类:
编程语言 时间:
2015-04-09 21:50:51
阅读次数:
162