摘要: #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 阅读(1232) 评论(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 阅读(1497) 评论(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 阅读(724) 评论(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 阅读(694) 评论(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 阅读(547) 评论(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 阅读(5079) 评论(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 阅读(330) 评论(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 阅读(271) 评论(0) 推荐(0) 编辑
摘要: //声明非原创步骤:1.打开Xcode,单机CreatanewXcodeproject2.左边选择ios下Application,右边选择singleviewApplication3.填写项目名称单机Next4.ViewController.h中定义成员和方法//// ViewController... 阅读全文
posted @ 2015-08-02 13:24 OIMMZC 阅读(621) 评论(0) 推荐(0) 编辑
摘要: //此作品非原创#import"ACViewController.h"@interfaceACViewController()@end@implementationACViewController- (void)viewDidLoad{[superviewDidLoad];// Do any add... 阅读全文
posted @ 2015-08-02 13:21 OIMMZC 阅读(773) 评论(0) 推荐(0) 编辑