Stay hungry,stay foolish
摘要: 1 #import 2 3 @interfaceCattle:NSObject{ 4 5 intlegsCount; 6 7 } 8 9 -(void)saySomething; 10 11 -(void)setLegsCount:(int)count; 12 1... 阅读全文
posted @ 2015-09-17 16:25 程序员不圆 阅读(201) 评论(0) 推荐(0) 编辑
摘要: OC方面的基础笔记摘录:1.类的基本用法#import // 大体上就是include, 用于包含头文件, 但是即使头文件中, 没有ifndef defined endif, 仍然能够踢除重复包含的头文件// ----@interface section----// OC中声明和实现是分离的, 两个... 阅读全文
posted @ 2015-09-17 11:34 程序员不圆 阅读(217) 评论(0) 推荐(0) 编辑
摘要: //自己把指针看懂后,编的的小程序,分享下小喜悦。#importint abc(*p1,t*p2,*p3){int temp=*p1;if (temp<*p2) {temp=*p2;}if (temp<*p3) {temp=*p3;}return temp;}int main(int argc, c... 阅读全文
posted @ 2015-09-16 17:30 程序员不圆 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 第一节总括这一节是对Objective-C(以后简称OC)的简要介绍,目的是使读者对OC有一个概括的认识。1.面象的读者在阅读本文之前,应具备使用与C类似的编程语言(如C,C++,JAVA)的一些经验,同时熟悉面向对象编程。2.OC简介OC是以SmallTalk为基础,建立在C语言之上,是C语言的超... 阅读全文
posted @ 2015-09-16 17:26 程序员不圆 阅读(716) 评论(0) 推荐(0) 编辑