09 2014 档案

摘要:#include int main(void){ int a,b,c,d; int maopao[15]={6,5,7,8,4,9,3,1,2,15,13,11,12,10,14}; for (a=13; a>=0; a--) { for (b=0; bmaopao[b+1]) { ... 阅读全文
posted @ 2014-09-23 21:54 慕容曦文 阅读(156) 评论(0) 推荐(0)
摘要:1、创建一个drawboard#import "DrawBoard1.h"@implementation DrawBoard1-(void)drawRect:(CGRect)rect{ CGContextRef context=UIGraphicsGetCurrentContext(); CGC... 阅读全文
posted @ 2014-09-22 22:07 慕容曦文 阅读(178) 评论(0) 推荐(0)
摘要:#includelong fibonacci (long n ){ if ( n == 1 || n == 0) return 1; else return fibonacci(n-1)+fibonacci(n-2);}int main(void){ long n; scanf("%l... 阅读全文
posted @ 2014-09-22 09:26 慕容曦文 阅读(125) 评论(0) 推荐(0)
摘要:#include int main(void){ char c ; c =getchar(); int totalCount=c -'a'; for (int count=0; countcount ; i--) { printf("%c",' '); } for... 阅读全文
posted @ 2014-09-18 22:49 慕容曦文 阅读(101) 评论(0) 推荐(0)
摘要://// ViewController.m// 计算器//// Created by apple on 14-9-17.// Copyright (c) 2014年 apple. All rights reserved.//#import "ViewController.h"@interface V... 阅读全文
posted @ 2014-09-17 21:17 慕容曦文 阅读(147) 评论(0) 推荐(0)
摘要:printf("%.4f",2.3);c语言方法 char a; a=42; printf("%c%c%c%c%c%c%c",a,a,a,a,a,a,a); printf("\n %c%c%c%c%c%",a,a,a,a,a); printf("\n %c%c%c",a,a,a); printf(... 阅读全文
posted @ 2014-09-16 21:40 慕容曦文 阅读(101) 评论(0) 推荐(0)