关键字 变量 的文章


由   YIem   撰写于    浏览:4369  评论:0
MacBook Pro通过Homebrew一键安装最新版MongoDB数据库、或者指定版本数据库MongoDB数据库安装环境MongoDB仅支持Intel x86-64上的macOS版本10.11及更高版本. MongoDB 4.0可能会在macOS 10.13+上的不正常关机期间丢失数据. Homebrew 版本1.7 OS X 版本 10.13[...]

由   YIem   撰写于    浏览:3499  评论:0
for 和while的特点1、for和while可以互换2、格式上的不同,在使用上有点小区别​ 如果需要通过变量来对循环进行控制, 该变量只能作为循环增量存在是, 区别就体现出来了。eg:打印1~10 十个数字 int x = 1;while (x < 5) {​ System.out.println("x = " + x);​ [...]

由   YIem   撰写于    浏览:4099  评论:0
Java对两个整数变量的值进行交换int a = 1, b = 2;方法一:int c;c = a; a = b; b = c;方法二:a = a + b;b = a - b;a = a - b;方法三:一个数^同一个数两次结果还是这个数a = a ^ b;b = a ^ b;a = a ^ b;

由   YIem   撰写于    浏览:9696  评论:0
MAC 解决终端中 ls、cd、等等命令失效问题-原因错误修改~/.bash_profile文件在修改.bash_profile之后,终端输入命名出现-bash: ls: command not found 1>在命令行中输入export PATH=/usr/bin:/usr/sbin:/bin:/sbin:/usr/X11R6/bin这样可[...]

由   YIem   撰写于    浏览:4432  评论:0
iOS-不规则瀑布流-瀑布流图片-

由   YIem   撰写于    浏览:3616  评论:0
iOS-数据库-ViewController.m 调用- 数据库附件(1)iOS-数据库-Student类-附件(2)iOS-数据库-数据库创建DataBaseHandle.h//// DataBaseHandle.h// UI17_数据库//// Created by YIem on 16/3/3.// Copyright © 2016年[...]

由   YIem   撰写于    浏览:3503  评论:0
NSUserDefaults 是全局变量 简单信息存储数据到本地// 用来向本地存储一些简单信息 NSUserDefaults *userD = [NSUserDefaults standardUserDefaults]; // 存入BOOL类型数据 [userD setBool:YES forKey:@"isLogin"];[...]

由   YIem   撰写于    浏览:4749  评论:0
Objective-C考试- 蓝鸥3G-OC考试题 ※ 选择题(共40题,每题2分) 1、NSString *str = @“lanou”; [str retain]; [str autorelease];
此时str的引用计数是________。 答案:(D) A、0 B、1 C、2 D、以上[...]

由   YIem   撰写于    浏览:3624  评论:0
/* 完成以下需求 需求:1、定义 联系人类Contact。实例变量:姓名(拼⾳, ⾸字母大写)、性别、电话号码、住址、分组名称、年龄。 ⽅法:自定义初始化方法(姓名、电话号码)、显示联系⼈信息(重写description方法, 打印所有成员变量)。 2、在main.m中定义字典,分组管理所有联系人。分组名 为26个大写的英文字母。 3、可以[...]

由   YIem   撰写于    浏览:4079  评论:0
//// AppDelegate.h// UI13_Block传值//// Created by YIem on 15/12/23.// Copyright © 2015年 www.yiem.net YIem博客. All rights reserved.//import <UIKit/UIKit.h>@interface Ap[...]

由   YIem   撰写于    浏览:3800  评论:0
//// AppDelegate.h// UI12_TavleView编辑//// Created by YIem on 15/12/22.// Copyright © 2015年 www.yiem.net YIem博客. All rights reserved.//import <UIKit/UIKit.h>@interfac[...]

由   YIem   撰写于    浏览:4414  评论:0
//// AppDelegate.h// UI8_Block//// Created by YIem on 15/12/16.// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.//import <UIKit/UIKit.h>@interface App[...]

由   YIem   撰写于    浏览:4067  评论:0
Objective-C(新)Objective-C考试 ※ 选择题(共80题,每题1分)1、不会立刻使引用计数器改变的是:答案:(C) A、release B、alloc C、autorelease D、retain2、OC中布尔(BOOL)类型的变量的值只有:答案:(B) A、1/0 B、YES/NO C、true/false D、1/-13[...]

由   YIem   撰写于    浏览:2831  评论:0
//// main.m// OC_9 类的扩展//// Created by YIem on 15/12/4.// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.//import <Foundation/Foundation.h>import "Gril[...]

由   YIem   撰写于    浏览:2826  评论:0
//// main.m// OC_9练习//// Created by YIem on 15/12/4.// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.//import <Foundation/Foundation.h>import "Person.[...]

由   YIem   撰写于    浏览:2988  评论:0
//// main.m// OC_内存管理//// Created by YIem on 15/12/3.// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.//import <Foundation/Foundation.h>import "Person[...]

由   YIem   撰写于    浏览:3762  评论:0
//// main.m// OC6_练习//// Created by YIem. on 12/1/15.// Copyright (c) 2015 www.yiem.net YIem博客. All rights reserved.//import <Foundation/Foundation.h>import "Book.h"[...]

由   YIem   撰写于    浏览:3306  评论:0
//// main.m// OC_4数组//// Created by YIem on 15/11/27.// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.//import <Foundation/Foundation.h>int main(int a[...]

由   YIem   撰写于    浏览:5083  评论:0
//// main.m// OC_4NSString//// Created by YIem on 15/11/27.// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.//import <Foundation/Foundation.h>int main[...]

由   YIem   撰写于    浏览:3024  评论:0
//// main.m// OC_3属性//// Created by YIem on 15/11/26.// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.//import <Foundation/Foundation.h>import "Studen[...]

由   YIem   撰写于    浏览:4008  评论:0
//// main.m// OC_NO.1//// Created by YIem on 15/11/24.// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.//import <Foundation/Foundation.h>import "Car_1[...]

由   YIem   撰写于    浏览:3010  评论:0
//// main.m// OC_2初始化_便利构造器//// Created by YIem on 15/11/25.// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.//import <Foundation/Foundation.h>import [...]

由   YIem   撰写于    浏览:4377  评论:0
//// main.m// OC_2方法//// Created by YIem on 15/11/25.// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.//import <Foundation/Foundation.h>import "Person[...]

由   YIem   撰写于    浏览:4717  评论:0
//// main.m// OC_类和对象//// Created by YIem on 15/11/24.// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.//import <Foundation/Foundation.h>import "Perso[...]

由   YIem   撰写于    浏览:3632  评论:0
//// main.m// C10_函数指针//// Created by YIem on 15/11/23.// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.//import <Foundation/Foundation.h>import "MyFu[...]