摘要: http://jingyan.baidu.com/article/ab0b5630936ab6c15afa7d1c.htmlhttps://help.github.com/articles/generating-ssh-keys/今天为了把项目挂到Github上并且和组员协作好,研究了下Github... 阅读全文
posted @ 2015-07-10 17:23 小天才努努 阅读(1120) 评论(0) 推荐(0) 编辑
摘要: /*** 函数的定义和调用*/func showIntegerArray(array:[Int]){ for a in array { println("\(a)") }}showIntegerArray([1,2,3])func maxOfValue(a:Int,... 阅读全文
posted @ 2015-07-10 11:32 小天才努努 阅读(164) 评论(0) 推荐(0) 编辑
摘要: //swift的广义匹配let x = 1000switch x { case 1...9: println("个位数") case 1...9: println("十位数") default: println("其他")}let point = (10,10)s... 阅读全文
posted @ 2015-07-10 11:31 小天才努努 阅读(158) 评论(0) 推荐(0) 编辑
摘要: //1。数组的概念和定义var array = [2,3,4,5]var array1:Array = [2,3,4,5]var array2:Array = [2,3,4,5];var array3:[Int] = [2,3,4];var array4:[Double] = [2.2,3,4]va... 阅读全文
posted @ 2015-07-10 11:30 小天才努努 阅读(853) 评论(0) 推荐(0) 编辑
摘要: /*1.swift字符串和字符2.构造字符串3.字符串比较4.数值运算5.复制运算6.关系运算7.逻辑运算8.区间运算*//*//数据 + 数据的处理//字符信息+ 字符信息的处理//char a = '张'//“hello”//const char * p = “hello”//char arra... 阅读全文
posted @ 2015-07-10 11:28 小天才努努 阅读(183) 评论(0) 推荐(0) 编辑
摘要: /*1.swift字符串和字符2.构造字符串3.字符串比较4.数值运算5.复制运算6.关系运算7.逻辑运算8.区间运算*//*//数据 + 数据的处理//字符信息+ 字符信息的处理//char a = '张'//“hello”//const char * p = “hello”//char arra... 阅读全文
posted @ 2015-07-10 11:28 小天才努努 阅读(159) 评论(0) 推荐(0) 编辑
摘要: import Foundationprintln("Hello, World!")/* int a;*/var a = 10 //隐式类型转换a = 9println(a)let b = 10println(b)/*类型标注*///var x:Int//x = 10.3不支持隐式转换let x... 阅读全文
posted @ 2015-07-10 11:27 小天才努努 阅读(174) 评论(0) 推荐(0) 编辑
摘要: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customizati... 阅读全文
posted @ 2015-07-10 11:13 小天才努努 阅读(259) 评论(0) 推荐(0) 编辑