// Playground - noun: a place where people can play// 通过代码快速了解swift常用知识,需要一定object-c基础import UIKit// 声明常量let maximumNumberOfAttemps = 10// 声明变量var cur...
分类:
编程语言 时间:
2014-11-23 18:53:09
阅读次数:
214
// Playground - noun: a place where people can playimport UIKit// 枚举语法enum SomeEnumeration { // enumeration definition goes here}// 定义一个枚举enum Comp...
分类:
编程语言 时间:
2014-11-23 18:50:48
阅读次数:
197
// Playground - noun: a place where people can playimport UIKit// 数组 字典// 集合的可变性 赋值给var的集合是可变的mutable,赋值给let的集合是不可变的immutable// 数组 Array 等价于 [SomeTy.....
分类:
编程语言 时间:
2014-11-23 18:47:08
阅读次数:
289
DescriptionA group of N people wishes to go across a river with only one boat, which can at most carry two persons. Therefore some sort of shuttle arr...
分类:
其他好文 时间:
2014-11-23 13:04:00
阅读次数:
170
Choosing number
Time Limit: 2 Seconds
Memory Limit: 65536 KB
There are n people standing in a row. And There are m numbers, 1.2...m. Every one should choose a number. But if two persons ...
分类:
其他好文 时间:
2014-11-22 14:44:25
阅读次数:
142
The most precious thingis life.Lifefor each person only once.Therefore,people's life should be spent this way:when a personlook back at the past,not b...
分类:
其他好文 时间:
2014-11-21 21:48:42
阅读次数:
185
Judge Ito is having a problem with people subpoenaed for jury duty giving rather lame excuses in order to avoid serving. In order to reduce the amount of time required listening to goofy excuses, Judg...
分类:
其他好文 时间:
2014-11-21 01:37:01
阅读次数:
185
Description
Judge Ito is having a problem with people subpoenaed for jury duty giving rather lame excuses in order to avoid serving. In order to reduce the amount of time required listening to go...
分类:
其他好文 时间:
2014-11-20 23:48:40
阅读次数:
283
今天在云和学院学了很多,我这次只能先总结一下C#中的虚方法和抽象的运用。理论:?用virtual修饰的方法叫做虚方法?虚方法可以在子类中通过override关键字来重写?常见的虚方法:ToString() Equals实操:定义一个People的父类,包括Name,Gender,Age,和一个Pe....
又到了总结的时间了,今天在云和学院学习了文件管理的一些运用及复习昨天学的里氏转换。今天我就总结下昨天遗留下的问题以及今天所学的知识。昨天遗留的问题里氏转换(父类转子类)例:在这里定义父类People,包含Name属性 子类:Student包含StadyNum属性,一个SsHi方法。People p....