摘要: 一.Use the following method printPrimes() for questions a–d. (a) Draw the control flow graph for the printPrimes() method. (b) Considertestcasest1=(n=3) 阅读全文
posted @ 2017-03-13 22:28 cheetah666 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 本文将简单介绍一下如何使用JUnit和Eclemma来测试JAVA程序。 第一步 安装JUnit和Eclemma. 在Eclipse中新建JAVA项目SanJiaoXing,然后编写源文件Triangle.java. 接下来右键点击此源文件-->New-->JUnit Test Case,并做如下配 阅读全文
posted @ 2017-03-10 13:25 cheetah666 阅读(4399) 评论(0) 推荐(1) 编辑
摘要: 寒假期间一时兴起,想着用C语言能开发出贪吃蛇小游戏应该是一件不错的事!但C语言学习过程中从来都是字符界面的编程,如何能有“图形化”的效果呢?于是小编就在度娘, 谷歌等网站搜索了一番,发现了一些有用的Win32 API函数,于是小编的心一下子激动了起来,有了这些API函数也许能够实现哟!开始吧! 编程 阅读全文
posted @ 2017-03-01 18:50 cheetah666 阅读(659) 评论(0) 推荐(0) 编辑
摘要: My answers to the questions above are as followed: The knowledge required includes: 阅读全文
posted @ 2017-02-25 22:53 cheetah666 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 以往我们做横向菜单列表的时候,往往使用li和float:left结合来实现,但这样通常会造成布局的混乱。因此我们可以尝试使用li和display:inline-block来实现。 简单的说,设置了inline-block属性的元素既拥有了block元素可以设置width和height的特性,又保持了 阅读全文
posted @ 2017-02-24 18:30 cheetah666 阅读(271) 评论(0) 推荐(0) 编辑