摘要: 1 // 结构体 2 struct Student 3 { 4 //结构体的属性 5 var age: Int 6 var name: String 7 //结构体的实例方法 8 func sayHello() 9 { 10 print("hello") 11 } 12 //... 阅读全文
posted @ 2016-03-17 17:50 _小帅 阅读(242) 评论(0) 推荐(0) 编辑