摘要: Use the following method printPrimes() for questions a-d below. 1. /** ***************************************************** 2. * Finds and prints n p 阅读全文
posted @ 2016-03-29 22:23 BigBigWolf~ 阅读(640) 评论(0) 推荐(0) 编辑
摘要: Junit是一个很方便易用的软件测试工具,这里以测试检测三角形是等腰、等边还是一般三角形的方法为例,介绍Junit的用法。 1.安装配置 在Build Path添加junit-4.12.jar和hamcrest-all-1.3.jar,新建Junit Test Case,选择test文件夹,并保持其 阅读全文
posted @ 2016-03-18 14:16 BigBigWolf~ 阅读(1255) 评论(0) 推荐(0) 编辑
摘要: 一、RegularExpressionusing System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Text.RegularExpressions;using System... 阅读全文
posted @ 2015-04-26 21:06 BigBigWolf~ 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 本周学到很多C#关于Interface, Array的知识,在这里简单复习一下几个易混的地方,重在理解。一、Interface 使用as来避免多态时没有接口的Exception:Document [] folder = new Document[5];for (int i = 0; i < 5... 阅读全文
posted @ 2015-04-05 19:26 BigBigWolf~ 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 刚学了一点C#,感觉绝大部分和C++是一致的,上课听到C#类constructor有个小疑问,C#是先执行默认constructor再去执行用户定义constructor,这和C++里面有点不同。可能是编译器问题,C++里如果用户定义了constructor()无参,则内建constructor不会... 阅读全文
posted @ 2015-03-24 01:43 BigBigWolf~ 阅读(521) 评论(0) 推荐(0) 编辑
摘要: 刚学C#,随便试了几个小程序,感觉和java有很多相似的地方。不多说了,上图~Hello_World!还是蛮激动哒~这个就有点费劲了。。 开始找不到property,不知怎么改。。找了好久才知道一些文件是做什么的。这个WP应用是直接按模板改的,顺便加了张图。vs用起来感觉很好,启动快,运行流畅,除了... 阅读全文
posted @ 2015-03-15 17:38 BigBigWolf~ 阅读(268) 评论(3) 推荐(0) 编辑