2020年6月17日
摘要:
模块不是一个独立的程序,因此必须为每个单元测试开发驱动软件和(或)存根软件。 驱动程序是一个“主程序”,它接收测试数据,把这些数据传送给被测试的模块,并且印出有关的结果。 存根程序代替被测试的模块所调用的模块,它使用被它代替的模块的接口,可能做最少量的数据操作,印出对入口的检验或操作结果,并且把控制
阅读全文
posted @ 2020-06-17 17:17
25th_engineer
阅读(202)
推荐(0)
posted @ 2020-06-17 11:44
25th_engineer
阅读(273)
推荐(0)
2020年6月10日
摘要:
题目(题目链接:https://www.cnblogs.com/Forever-Kenlen-Ja/p/3735043.html):计算给定分段函数在不同输入时的取值。 要求:编制程序,计算下面函数值: 其中,从键盘输入x与y,输出数据为a。 输入输出时候都要求有提示信息。 考查知识点:分支结构的应
阅读全文
posted @ 2020-06-10 22:03
25th_engineer
阅读(1040)
推荐(0)
2019年11月3日
摘要:
我一度对于C语言与C++是不是开源语言很困惑:为什么有那么多人鼓吹Java、Python、PHP等是开源语言,却没有人提C与C++开源与否呢?今天在stackoverflow上找到了几个比较满意的回答,特写篇博文总结一下老外的回答,也供各位对此问题持疑问态度的朋友一个参考。 关于C语言开源与否: C
阅读全文
posted @ 2019-11-03 11:58
25th_engineer
阅读(5067)
推荐(1)
2019年10月28日
摘要:
github地址:https://github.com/25thengineer/Compile_Experiment_LR_1 测试数据: 代码: 无GUI代码(Scala): 1 import scala.collection.immutable.Stack 2 import scala.col
阅读全文
posted @ 2019-10-28 21:44
25th_engineer
阅读(750)
推荐(0)
2019年10月20日
摘要:
github项目地址:https://github.com/25thengineer/Compile_Experiment_LL_1 完成了形式上的消除左递归,但是还存在bug,不能直接用于求解实际问题,但过实验指导书的样例是没问题的。先上几组测试数据。 测试数据: test.data(指导书上的样
阅读全文
posted @ 2019-10-20 11:17
25th_engineer
阅读(1149)
推荐(0)
2019年8月30日
posted @ 2019-08-30 08:40
25th_engineer
阅读(174)
推荐(0)
2019年7月28日
摘要:
In Scala, constructors other than the primary constructor are called auxiliary constructors. Auxiliary constructors in Scala start with def this(...).
阅读全文
posted @ 2019-07-28 12:01
25th_engineer
阅读(181)
推荐(0)
摘要:
Immutable objects offer several advantages over mutable objects, and one potential disadvantage. First, immutable objects are often easier to reason a
阅读全文
posted @ 2019-07-28 11:32
25th_engineer
阅读(285)
推荐(0)
摘要:
[1] Packages, which were briefly described in Step 1 in Chapter 2, will be covered in depth inChapter 13. [2] figuratively speaking [3] Overloaded met
阅读全文
posted @ 2019-07-28 10:28
25th_engineer
阅读(165)
推荐(0)