摘要: vim fopen.c 在终端创建一个fopen.c文件并打开 1 #include 2 #include 3 int main(int argc,char *argv[]) //main函数原型 4 { 5 if(argc < 3) 6 { 7 printf("too few argment\n"); 8 } 9 char *dstfile = argv[2];10 char *srcfile = argv[1];11 FILE *srcFile = fopen(srcfile,"r+");//r+:Create an empty file an 阅读全文
posted @ 2013-12-31 20:48 fooke 阅读(1944) 评论(0) 推荐(0) 编辑
摘要: 新建一个工程,在把RNFrostedSidebar导入到工程。1、在ViewController里导入RNFrostedSidebar头文件并且接受代理2、生成一个点击事件,使它触发弹出左边栏的事件- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. UIButton *leftBtn = [UIButton buttonWithType:UIButtonTypeRoundedRect]; [leftBtn setTit 阅读全文
posted @ 2013-12-28 15:51 fooke 阅读(611) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 //此处声明一个结构体用于保存点坐标值 3 struct point{ 4 int x,y; 5 }startp,endp; 6 //结构体嵌套,用typedef声明一个这种类型的结构体 7 typedef struct line{ 8 struct point startp,endp; 9 }lines;//此函数用于输入4个点,构成一条线段11 lines *get_line(lines *p)//指针函数,参数类型是指针12 {13 int a,b,c,d;14 printf("please input 4 point\n");15 scan 阅读全文
posted @ 2013-12-27 17:11 fooke 阅读(850) 评论(0) 推荐(0) 编辑