摘要: // main.m// OC04_属性//// Created by dllo on 15/7/17.// Copyright (c) 2015年cml. All rights reserved.//#import#import"Person.h"#import"Student.h"#import"... 阅读全文
posted @ 2015-07-18 17:50 天涯ml 阅读(88) 评论(0) 推荐(0) 编辑
摘要: // main.m// OC02_可见度,方法//// Created by dllo on 15/7/16.// Copyright (c) 2015年 cml. All rights reserved.//#import #import "Student.h"#import "AudiCar.h... 阅读全文
posted @ 2015-07-16 20:58 天涯ml 阅读(167) 评论(0) 推荐(0) 编辑
摘要: // main.m// OC01类和对象//// Created by dllo on 15/7/15.// Copyright (c) 2015年 cml. All rights reserved.//#import // 先引头文件#import"Phone.h"#import"Audio ca... 阅读全文
posted @ 2015-07-15 21:06 天涯ml 阅读(135) 评论(0) 推荐(0) 编辑
摘要: //// 比较两个数的大小,并返回结果//int maxValue(int a , int b){// return a>b?a:b;//}////int sumNum(int x,int y){// return x + y;//}////void test(int a, int b){// ... 阅读全文
posted @ 2015-07-14 21:02 天涯ml 阅读(183) 评论(0) 推荐(0) 编辑
摘要: // main.m// C10_动态内存分配//// Created by dllo on 15/7/13.// Copyright (c) 2015年 cml. All rights reserved.//#import ////void func (){// int x =5;// int ... 阅读全文
posted @ 2015-07-13 21:36 天涯ml 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 主函数:// main.m// test7.10//// Created by dllo on 15/7/10.// Copyright (c) 2015年 cml. All rights reserved.//#import #import "MyFunction.h"int main(int a... 阅读全文
posted @ 2015-07-11 21:00 天涯ml 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 主函数// main.m// C9_结构体指针//// Created by dllo on 15/7/10.// Copyright (c) 2015年 cml. All rights reserved.//#import #import "MyFunction.h"// 宏是一个替换的过程,把后... 阅读全文
posted @ 2015-07-10 20:42 天涯ml 阅读(173) 评论(0) 推荐(0) 编辑
摘要: //// main.m// C8_指针//// Created by dllo on 15/7/9.// Copyright (c) 2015年 cml. All rights reserved.//#import #import "MyFunction.h"int main(int argc, c... 阅读全文
posted @ 2015-07-09 21:03 天涯ml 阅读(133) 评论(0) 推荐(0) 编辑
摘要: //// main.m// C7_结构体//// Created by dllo on 15/7/8.// Copyright (c) 2015年 cml. All rights reserved.//#import //struct student{ // 成员变量 int stuAge; ... 阅读全文
posted @ 2015-07-08 17:41 天涯ml 阅读(146) 评论(0) 推荐(0) 编辑
摘要: .h文件//// MyFunction.h// C6_函数多文件管理//// Created by dllo on 15/7/7.// Copyright (c) 2015年 cml. All rights reserved.//#import // 在.h里,我们写函数的声明// 声明相当于说明书... 阅读全文
posted @ 2015-07-07 20:43 天涯ml 阅读(120) 评论(0) 推荐(0) 编辑