摘要: 在学习操作系统这门课程时,老师让我们做个小游戏,来把之前学过的数据结构,操作系统的知识能在设计的过程中加深印象。我做的是:贪吃蛇(会闪屏的贪吃蛇)和(没有棋盘)的五子棋。在那个只会C的时候,写的并不好但也很开心。时间到了上半年,由于经常换操作系统(自己闲着没事瞎折腾),许多自己之前写的一些代码都... 阅读全文
posted @ 2015-11-11 16:19 Guth 阅读(302) 评论(0) 推荐(0)
摘要: Lattice pathsProblem_15Starting in the top left corner of a 2×2 grid,and only being able to move to the right and down,there are exactly 6 routes to t... 阅读全文
posted @ 2015-10-14 20:16 Guth 阅读(291) 评论(0) 推荐(0)
摘要: Coded triangle numbersProblem 42The nth term of the sequence of triangle numbers is given by,tn=1/2n(n+1);so the first ten triangle numbers are: 1, 3,... 阅读全文
posted @ 2015-10-10 20:16 Guth 阅读(229) 评论(0) 推荐(0)