SSDD6lab
所属分类:教育系统应用
开发工具:C/C++
文件大小:209KB
下载次数:1
上传日期:2016-11-08 17:13:52
上 传 者:
peipeipei
说明: 系统级编程实验2,此实验为软件学院的系统编程常用实验项目
(System-level programming experiment 2, this experiment is commonly used in software colleges)
文件列表:
SSDD6lab\bits.c (5120, 2016-09-13)
SSDD6lab\bits.h (499, 2002-08-16)
SSDD6lab\btest.c (9254, 2002-08-16)
SSDD6lab\btest.exe (188480, 2016-09-18)
SSDD6lab\btest.h (771, 2002-08-16)
SSDD6lab\btest.ilk (208448, 2016-09-18)
SSDD6lab\Debug\bits.obj (6545, 2016-09-18)
SSDD6lab\Debug\btest.obj (19606, 2016-09-13)
SSDD6lab\Debug\btest.pdb (476160, 2016-09-18)
SSDD6lab\Debug\decl.obj (5172, 2016-09-13)
SSDD6lab\Debug\dlab.pch (206824, 2016-09-13)
SSDD6lab\Debug\getopt.obj (13337, 2016-09-13)
SSDD6lab\Debug\tests.obj (6419, 2016-09-13)
SSDD6lab\Debug\vc60.idb (41984, 2016-09-18)
SSDD6lab\Debug\vc60.pdb (53248, 2016-09-18)
SSDD6lab\decl.c (1536, 2002-08-16)
SSDD6lab\dlab.dsp (3893, 2002-08-16)
SSDD6lab\dlab.dsw (531, 2002-08-16)
SSDD6lab\dlab.ncb (41984, 2016-09-18)
SSDD6lab\dlab.opt (48640, 2016-09-18)
SSDD6lab\dlab.plg (825, 2016-09-18)
SSDD6lab\getopt.c (22350, 2002-08-16)
SSDD6lab\getopt.h (4505, 2002-08-16)
SSDD6lab\tailor.h (7760, 2002-08-16)
SSDD6lab\tests.c (754, 2002-08-16)
SSDD6lab\Debug (0, 2016-11-08)
SSDD6lab (0, 2016-11-08)
The Data Lab
Directions to Students
Your goal is to modify your copy of bits.c so that it passes all the
tests in btest without violating any of the coding guidelines.
***************************************************
1. Modifying bits.c and checking it for correctness
***************************************************
Carefully read the instructions in the bits.c file before you
start. These give the coding rules that you will need to follow if you
want full credit.
Carefully your solution for compliance with the coding rules. In
particular, make sure you haven't used an illegal operator. Once you
have a legal solution, you can test it for correctness using the
btest.exe program.
*****************************************
2. Testing for correctness with btest.exe
*****************************************
The dlab.dsw workspace file in this directory compiles your version of
bits.c with additional code to create a program (or test harness)
named btest.exe.
**********************
3. What btest.exe does
**********************
Btest.exe tests your procedures for correctness by running a number of test
cases. It does not guarantee exhaustive evaluation. In addition, it does
not check your code for compliance with the coding guidelines. You will
have to do that manually.
Here are the command line options for btest.exe:
-e N Limit number of errors to report for single function to N
(Default unbounded)
-f Name Check only the named function
-g Prints concise report (implies -v 0 and -e 0)
-h Print the list of options
-v N Set verbosity to level N
N=0 Only give final scores
N=1 Also report individual correctness scores (default)
近期下载者:
相关文件:
收藏者: