摘要: A。控制流图 B。将MAXPRIMES设为4,这样t2=(n=5)就会出现数组越界的错误,但t1=(n=3)无影响。 C。n=1的时候不满足numPrimes < n,故不经过while循环 D。 点覆盖:{1,2,3,4,5,6,7,5,6,8,9,10,11,12,13,14,15,16} 边覆 阅读全文
posted @ 2016-03-30 18:46 燃烧灬 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 1. hamcrest-all-1.3.jar junit-4.12.jar 两个包可以直接通过导入包实现 2.eclemma安装 使用eclipse的 Install new software 功能 直接安装eclemma 重启eclipse后便可 3.测试结果 有结果可看出 代码覆盖率为 100 阅读全文
posted @ 2016-03-19 20:52 燃烧灬 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 1 public int findLast (int[] x, int y) { 2 //Effects: If x==null throw 3 NullPointerException 4 // else return the index of the last element 5 // in x 阅读全文
posted @ 2016-03-08 23:50 燃烧灬 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 我们目前接触到的小工程有很多是需要连接数据库才能实现的。例如小型超市管理系统,数据监管网站等。 这些小工程必然会涉及到SQL注入问题。目前我碰到的问题如下: 1.最简单的数据库排序规则问题,在mySQL中,数据库存储的数据被分为很多排序规则,默认为 “latin1_swedish_ci”,在此规则下 阅读全文
posted @ 2016-03-06 22:46 燃烧灬 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 实验程序:todolist本次博客主要记录实验程序开发过程。 1 public void Save() 2 { 3 System.Text.StringBuilder report = new System.Text.StringBuilder(); 4 ... 阅读全文
posted @ 2015-05-18 12:40 燃烧灬 阅读(591) 评论(0) 推荐(1) 编辑
摘要: 1.WPF用申诉式语言XAML编写的。2.WPF很灵活。3.用于丰富界面开发。 ... 阅读全文
posted @ 2015-05-04 21:55 燃烧灬 阅读(2429) 评论(0) 推荐(0) 编辑
摘要: LINQ(Language-INtegrated Query) 是一种用作查找、存取数据库或XML文件的语言模式。是沟通面向对象语言与数据库的方式。与SQL很相似。using System;using System.Collections.Generic;using System.Linq; ... 阅读全文
posted @ 2015-04-27 18:37 燃烧灬 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 正则表达式用来处理复杂的String 1 using System; 2 using System.Text; 3 using System.Text.RegularExpressions; 4 public class Tester 5 { 6 static void Main() 7 ... 阅读全文
posted @ 2015-04-20 18:11 燃烧灬 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 1.Interface 定义结构1 [attributes] [access-modifiers] interface interface-name [:base-inteface-list] 2 { 3 interface body 4 }[attributes] 性质 (可选项);... 阅读全文
posted @ 2015-04-06 14:44 燃烧灬 阅读(367) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace myclass{ class mc {... 阅读全文
posted @ 2015-03-30 18:29 燃烧灬 阅读(115) 评论(1) 推荐(0) 编辑