1.回答书上63-64页printPrimes()问题a-d: a:本题控制流图如下图1所示 为查看方便,利用图2进行答题 图1 图2 b: 我们注意到代码第十行有int [] primes = new int [MAXPRIMES] 若在程序中设置MAXPRIMES = 4,那么当运行t1时不会出 ...
分类:
其他好文 时间:
2017-03-14 10:44:12
阅读次数:
300
Using the following method printPrimes() for questions a-f below Prime.java PrimeTest.java Answer: ■ (a) Draw the control flow graph for the printPrim ...
分类:
其他好文 时间:
2017-03-12 23:48:33
阅读次数:
228
JUnit以及hamcrest-core-1.3 安装步骤 首先,新建一个java项目,名字叫triangle,然后右键,选择Properties,点击Java Build Path, 选择Libraries选项,点击右边的 Add library 选项,选择JUnit4, 于是JUnit软件包就被 ...
分类:
其他好文 时间:
2017-03-12 23:38:53
阅读次数:
218
Software Testing, Lab 1 1. Install Junit(4.12), Hamcrest(1.3) with Eclipse 1.在github上下载两个jar包junit-4.12.jar和hamcrest-all-1.3.jar地址为https://github.com/ ...
分类:
其他好文 时间:
2017-03-12 22:57:57
阅读次数:
242
Software Testing, Lab 1 March 10. 2016, by 赵国佺(3014218108) 一、 environment setup Firstly, I download the eclemma Zip from our ST’s course web. Because ...
分类:
其他好文 时间:
2017-03-12 20:10:06
阅读次数:
140
在KRPano开发过程中,初学者打开项目经常遇到如下的问题: FATAL ERROR:tour.xml – loading failed! (0) 或者是: ERROR:Local usage with file:// urls is limited due browser security 截屏如 ...
分类:
其他好文 时间:
2017-03-12 17:59:02
阅读次数:
2984
Tasks: a) Description of triangle problem: Function triangle takes three integers a,b,c which are length of triangle sides; calculates whether the tri ...
分类:
其他好文 时间:
2017-03-12 15:05:01
阅读次数:
128
1.下载junit和hamcrest的jar包并引入项目 2.在eclipse商店中下载安装eclemma插件 3.编写判断三角形形状的代码 4.完成测试类代码 5.测试结果 ...
分类:
其他好文 时间:
2017-03-12 13:27:43
阅读次数:
135
一、实验要求 1.使用Eclipse安装Junit(4.12),Hamcrest(1.3) 2.使用Eclipse安装Eclemma 3.为三角形问题编写一个Java程序,并用Junit测试程序。 a)三角问题的描述: 函数三角形取三个整数a,b,c,它们是三角形边的长度; 计算三角形是等边,等腰或 ...
分类:
其他好文 时间:
2017-03-12 13:26:05
阅读次数:
232
Win32 透明效果相关基础知识Layered Windows 分层窗口。这是Windows2000开始引入的概念,重新定义了窗口的Hit Testing方法,以前都是把窗口按rectangle的方式裁剪,而把窗口加上WS_EX_LAYERED的Style后就可以根据窗口的形状和像素 值进行Hit ... ...
分类:
Windows程序 时间:
2017-03-12 11:17:37
阅读次数:
2599