摘要: @property (weak, nonatomic) IBOutlet UITextField *Text1;@property (weak, nonatomic) IBOutlet UITextField *Text2;@property (weak, nonatomic) IBOutlet U... 阅读全文
posted @ 2014-11-04 14:58 慕容曦文 阅读(273) 评论(0) 推荐(0) 编辑
摘要: UILabel * lab = [[UILabel alloc]initWithFrame:CGRectMake(100, 100, 200, 400)];//在初始位置为100,100的地方创建一个宽为200,高位400的矩形 lab.text = @"Hello world";//在这个框框里... 阅读全文
posted @ 2014-10-20 20:52 慕容曦文 阅读(525) 评论(0) 推荐(0) 编辑
摘要: #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 慕容曦文 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 1、创建一个drawboard#import "DrawBoard1.h"@implementation DrawBoard1-(void)drawRect:(CGRect)rect{ CGContextRef context=UIGraphicsGetCurrentContext(); CGC... 阅读全文
posted @ 2014-09-22 22:07 慕容曦文 阅读(168) 评论(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 慕容曦文 阅读(119) 评论(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 慕容曦文 阅读(88) 评论(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 慕容曦文 阅读(133) 评论(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 慕容曦文 阅读(93) 评论(0) 推荐(0) 编辑