摘要: #import "ViewController.h"@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad {UIButton *button1=[UIButton buttonWithTyp... 阅读全文
posted @ 2015-08-03 13:39 OIMMZC 阅读(117) 评论(0) 推荐(0) 编辑
摘要: [super viewDidLoad]; // 实例化UILabel并指定其边框 UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(0.0, 80.0, 320.0, 300.0)]; // 设置label显示的文本 [lab... 阅读全文
posted @ 2015-08-03 08:17 OIMMZC 阅读(156) 评论(0) 推荐(0) 编辑
摘要: #include #include #include void test(){//汉字输出 printf("THIS IS TEST\n"); printf("My age is %d\n",26); printf("My age is %4d 发现没?26前面多了两个空格\n",26); ... 阅读全文
posted @ 2015-08-02 14:08 OIMMZC 阅读(1243) 评论(0) 推荐(0) 编辑
摘要: #include #define sum 3+4//宏定义是原封不动的使用used for test4#include //used for test8~9#include //used for test8~9void test(){//数组输出 //int a[5]={1,2,3,4,5}; ... 阅读全文
posted @ 2015-08-02 14:05 OIMMZC 阅读(1518) 评论(0) 推荐(0) 编辑
摘要: #include #include #include int main(int argc, const char * argv[]) { // insert code here... printf("Hello, World!\n"); int a,b,i; { sran... 阅读全文
posted @ 2015-08-02 14:02 OIMMZC 阅读(735) 评论(0) 推荐(0) 编辑
摘要: #include void test(){//1+2+3+4+.....+100 int a,b; a=0; b=0; for ( ; a#includeint main(){int n,i,k;printf("please enter a integer number:n=?");scan... 阅读全文
posted @ 2015-08-02 14:00 OIMMZC 阅读(702) 评论(0) 推荐(0) 编辑
摘要: #include //输入输出头文件#include#include//局部被调用函数1 成绩检测void test(){ int b;printf("请输入你的成绩\n");scanf("%d",&b);if (b>=0&&b<=100) { printf("分数正常\n等待分析。。。\n"... 阅读全文
posted @ 2015-08-02 13:56 OIMMZC 阅读(553) 评论(0) 推荐(0) 编辑
摘要: //求两个函数中的较大者的MAX函数#include int main(int argc, const char * argv[]) { printf("input two nimbers\n"); int max(int x,int y); int a, b,c; scanf("%d,%d... 阅读全文
posted @ 2015-08-02 13:53 OIMMZC 阅读(5109) 评论(2) 推荐(0) 编辑
摘要: #import @interface AppDelegate : UIResponder { int k;}@property (strong, nonatomic) UIWindow *window;@end#import "AppDelegate.h"@interface AppDelegat... 阅读全文
posted @ 2015-08-02 13:42 OIMMZC 阅读(332) 评论(0) 推荐(0) 编辑
摘要: #import @interface AppDelegate : UIResponder {@public NSInteger timeValue;}@property (strong, nonatomic) UIWindow *window;@end#import "AppDelegate.h"... 阅读全文
posted @ 2015-08-02 13:34 OIMMZC 阅读(272) 评论(0) 推荐(0) 编辑