import Foundation
//MARK:-------枚举语法-----------
//不像 C 和 Objective-C 一样,Swift 的枚举成员在被创建时不会被赋予一个默认的整数值
enum CompassPoint
{
case North
case South
case East
case West
}
enum Planet
{
...
分类:
编程语言 时间:
2015-07-10 13:31:29
阅读次数:
190
//: Playground - noun: a place where people can playimport UIKit//定义枚举//enum CompassPoint {// case North// case South// case East// case West//}//...
分类:
编程语言 时间:
2015-07-07 12:25:37
阅读次数:
130
声明枚举enum Direction {
case North
case East
case West
case South
}也可以使用一个caseenum Direct {
case North, East, South
}使用枚举var dirct = Direction.East
dirct = .West相关值可以使用枚举存储任何相关指enum Pe...
分类:
编程语言 时间:
2015-07-02 22:43:03
阅读次数:
160
Description
John never knew he had a grand-uncle, until he received the notary's letter. He learned that his late grand-uncle had gathered a lot of money, somewhere in South-America, and that John ...
分类:
其他好文 时间:
2015-06-30 22:04:06
阅读次数:
131
原文 The plane was late and detectives were waiting at the airport all morning. They were expecting a valuable parcel of diamonds from South Africa. A few hours earlier, someone had told the police...
分类:
其他好文 时间:
2015-06-29 15:06:09
阅读次数:
162
March of the PenguinsTime Limit:8000MSMemory Limit:65536KTotal Submissions:4378Accepted:1988DescriptionSomewhere near the south pole, a number of peng...
分类:
其他好文 时间:
2015-06-24 20:36:04
阅读次数:
140
问题:真受不了CAD中的注记,只能方便显示,难于数据交互。好在Cass把属性信息基本写在扩展属性中,但显示又成问题了。此事难两全!我们通过查看实体属性,需要把宗地界线的扩展属性提取出来。即组码为-3,South中的宗地号、户主名和地类代码提取出来。 分析:曾写过一个标注写入面属性的程序,最近又写了操...
分类:
其他好文 时间:
2015-06-24 14:37:35
阅读次数:
1052
1139. City Blocks
Time limit: 1.0 second
Memory limit: 64 MB
The blocks in the city of Fishburg are of square form.
N avenues running south to north and M streets running east to west bound ...
分类:
其他好文 时间:
2015-06-19 15:22:29
阅读次数:
142
注:本文内容基本源于Java图形化界面设计——布局管理器之BorderLayout(边界布局),笔者学习过程中根据自身理解进行少量编辑。 边界布局管理器(BorderLayout)把容器的的布局分为五个位置:CENTER、EAST、WEST、NORTH、SOUTH。依次对应为:上北(NORTH)、....