源代码(.m文件)
#import "ZKJAppDelegate.h"
@interface
ZKJAppDelegate ()
@property (retain,nonatomic)
UIView *containView;
@property (retain,
nonatomic) UIButton *button;
@pr...
分类:
移动开发 时间:
2014-08-21 11:29:04
阅读次数:
427
//耶稣有13个门徒,其中有一个就是出卖耶稣的叛徒,请用排除法找出这位叛徒:13人围坐一圈,从第一个开始报号:1,2,3,1,2,3...。凡是报到“3”就退出圈子,最后留在圈子内的人就是出卖耶稣的叛徒。请找出它原来的序号
// int a[13] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13};
// ...
分类:
其他好文 时间:
2014-08-16 11:14:30
阅读次数:
209
数组数组若没有指定初始值则为内存遗留值如果指定了部分初始值,那么其余部分也默认被指定为0:longdata[100]={0};//给data数组的所有元素赋0字符串是附加有特殊字符(/0)的字符序列数组的填充:charpresident[]="thankyou";wchar_tpresident[]=L"thankyou";//Unicode字符串co..
分类:
其他好文 时间:
2014-08-15 02:54:08
阅读次数:
250
数组数组若没有指定初始值则为内存遗留值如果指定了部分初始值,那么其余部分也默认被指定为0:longdata[100]={0};//给data数组的所有元素赋0字符串是附加有特殊字符(/0)的字符序列数组的填充:charpresident[]="thankyou";wchar_tpresident[]=L"thankyou";//Unicode字符串co..
分类:
其他好文 时间:
2014-08-15 02:53:57
阅读次数:
197
1、ajax发送json字符串
组建对象
var student = new Object();
student.name = "柯乐义";
student.age = "25";
student.location = "广州";
var student2 = new Object();
student2.name = "柯范德萨";
student2.age = "45";
stude...
分类:
编程语言 时间:
2014-08-14 01:38:57
阅读次数:
318
字符串的一些方法使用:1.创建字典的NSString可变字符串,和NSMutableString不可变字符串.都是objective的对象. char *str是字母数组.2.字符串格式化:stringWithFormat,,格式化任何int,char double,float等的内型.3.str....
分类:
其他好文 时间:
2014-08-07 00:28:37
阅读次数:
286
/** * Created by W.J.Chang on 2014/5/23. */// 判读是否是数组的方法console.log(Array.isArray(new Array));console.log(Array.isArray([]));var arr = [1,2,3];// 遍历方法...
分类:
Web程序 时间:
2014-08-07 00:13:46
阅读次数:
405
------Java培训、Android培训、iOS培训、.Net培训、期待与您交流! -------一、 数组的定义1. 定义l 声明数组的类型l 声明数组的元素个数(需要多少存储空间)2. 格式元素类型 数组名[元素个数];比如:int ages[3];3. 简单使用l 简单初始化:int ag...
分类:
其他好文 时间:
2014-08-05 19:06:59
阅读次数:
255
前几天用的结构体,结构体内还包含有结构体指针和数组以及指向字符串的指针,发现自己对这方面的东西还很容易犯错,故现在讲其中容易出错的地方写出来,分享给大家也方便自己日后查看。
typedef struct {
char name[50];
char job[50];
int age;
int people_id;
} peopleInfo;
typedef struct...
分类:
其他好文 时间:
2014-08-03 15:21:35
阅读次数:
190