函数递归调用

摘要: int main(int argc, const char * argv[]) { f(1,1,1000); return 0;}void f(int a,int b,int n){ if (a<n) { printf("%d\n",a); a=a+b; f(b,a,n);... 阅读全文
posted @ 2014-09-19 20:11 陈丰波 阅读(106) 评论(0) 推荐(0) 编辑

c语言打印字母三角形

摘要: #include int main(int argc, const char * argv[]) { char cost,top; cost=getchar(); if (cost>='a'&&cost='A'&&costj ; k--) { printf(" "); } ... 阅读全文
posted @ 2014-09-18 20:51 陈丰波 阅读(1181) 评论(0) 推荐(0) 编辑

计算器(可累加,可清零)

摘要: #import "ViewController.h"@interface ViewController ()@property (weak, nonatomic) IBOutlet UILabel *resultLabel;@end NSString *op1,*op2,*result; ch... 阅读全文
posted @ 2014-09-17 20:54 陈丰波 阅读(855) 评论(0) 推荐(0) 编辑

ios开发的第一步,新建工程

摘要: 今天开始学习了ios开发的第一步,新建工程。从打开Xcode到新建一个ios工程,这是学习ios的第一步,。今天还学习了一些C语言的一些基本数据类型,char:(-128----127)一个字节short 两个字节int 四个字节 阅读全文
posted @ 2014-09-16 18:42 陈丰波 阅读(147) 评论(0) 推荐(0) 编辑

程序的编译过程

摘要: 1.编译预处理(gcc -E source.E)产生source.E文件#define:宏定义,定义一个符号,在编译预处理的时候进行简单的替换#if/#endif:判断后面表达式的真假#ifdef/#ifndef/#endef:判断是否定义了某个宏定义2.编译(gcc -S source.E)产生s... 阅读全文
posted @ 2014-09-15 19:54 陈丰波 阅读(134) 评论(0) 推荐(0) 编辑