sing names.txt (right click and 'Save Link/Target As...'), a 46K text file containing over five-thousand first names, begin by sorting it into alphabetical order. Then working out the
alphabetical v...
分类:
其他好文 时间:
2014-06-20 10:37:22
阅读次数:
230
Enumerations and Structures
Enumerations 枚举的使用
使用 enum 定义一个枚举,枚举里面可以关联方法,比如下文中的描述方法
enum Rank: Int {
case Ace = 1
case Two, Three, Four, Five, Six, Seven, Eight, Nine, Ten
case Ja...
分类:
其他好文 时间:
2014-06-20 09:03:39
阅读次数:
322
Cone crusher plays an important role in the
mining industry because of it has wider application and higher production
capacity than other stone crushe...
分类:
移动开发 时间:
2014-06-13 06:30:08
阅读次数:
347
很遗憾前面只看过 Michael Jordan 写的一部分,这次打算把 Daphne Koller 和
Nir Friedman 合著的 Probabilistic Graphical Models: Principles and Techniques
好好过一遍。作者认为与通常写一个 specif...
分类:
其他好文 时间:
2014-06-08 23:24:14
阅读次数:
335
Lesson 1Pumas are large, cat-like animals which
are found in America. When reports came into London Zoo that a wild puma had
been spotted forty-five m...
分类:
其他好文 时间:
2014-06-06 14:08:51
阅读次数:
210
枚举 使用enum创建枚举——注意 Swift 的枚举可以关联方法: 1 enum Rank:
Int { 2 case Ace = 1 case Two, Three, Four, Five, Six, Seven, Eight, Nine, Ten 3
case Jack, Q...
分类:
其他好文 时间:
2014-06-06 08:30:54
阅读次数:
285
引言
这周的作业其实有点复杂,需要完成的代码有点多,有点绕。本周的课程主要讲了Scala中的类、继承和多态,作业也很好的从各个方面考察了课程的内容。作业题目工程主要需要完成的部分是TweetSet.scala这个文件中的内容,比较新潮,都是和推特相关。其中定义了一个抽象类TweetSet,以及其的两个子类Empty、NonEmpty,表示空集和非空集。非空集使用二叉树来表示,二叉树的根是一个Tw...
分类:
其他好文 时间:
2014-05-25 16:53:15
阅读次数:
444
上联:no zuo no die why you try
下联:no try no high give me five
横批: let it go。
坑爹bug:
错误写法:
0 } ">true (最后一个大括号后多出一个空格,代码啥都不会输出)
正确写法: 0 }">true 正确写法 输出结果: true...
分类:
Web程序 时间:
2014-05-22 07:42:52
阅读次数:
355
题目描述
五虎棋是流传在东北民间的一种游戏,GG小的时候,经常被表哥虐得很惨。
由于各个地区的规则可能不大相同,并且GG的回忆不一定很准,所以,如果规则和你平常玩的的有冲突,请以这里为主。
棋盘是横五条,纵五条直线,形成25个交叉点,双方轮流把棋子放到交叉点上 (由于所需各自和棋子数目不多,才12+13,GG小的时候,用的是象棋的棋盘和棋子,真的用大棋盘很爽~~~)
当双方把棋盘下满之后(...
分类:
其他好文 时间:
2014-05-16 02:55:31
阅读次数:
319
[Agile Software Development(Principles,Patterns,and
Pracitices)]
分类:
其他好文 时间:
2014-05-15 11:27:45
阅读次数:
182