dlab-handout
所属分类:系统设计方案
开发工具:C/C++
文件大小:19KB
下载次数:1
上传日期:2017-12-28 17:33:33
上 传 者:
mierfeng
说明: 这个任务的目的是更熟悉位级表示和操作。你会通过解决一系列的编程难题来解决这个问题。“很多这样的谜题都是人为的,但你会发现的。你自己想的更多的是通过你的方式通过他们,你将学到很多关于如何计算机表示整型数据。
(The purpose of this assignment is to become more familiar with bit-level representations and manipulations. You'll do this by solving a series of programming ``puzzles.'' Many of these puzzles are quite artificial, but you'll find yourself thinking much more about bits in working your way through them and you will learn a lot about how computers represent integer data.)
文件列表:
dlab-handout\bits.c (5476, 2017-12-28)
dlab-handout\bits.h (499, 2002-08-16)
dlab-handout\btest.c (9254, 2002-08-16)
dlab-handout\btest.h (771, 2002-08-16)
dlab-handout\decl.c (1536, 2002-08-16)
dlab-handout\dlab.vcproj (3368, 2005-08-10)
dlab-handout\getopt.c (22357, 2005-08-10)
dlab-handout\getopt.h (4505, 2002-08-16)
dlab-handout\tailor.h (7760, 2002-08-16)
dlab-handout\tests.c (754, 2002-08-16)
dlab-handout (0, 2017-12-28)
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
*****************************************
Use the dlab.vcproj VC++.Net project file to compile 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)
近期下载者:
相关文件:
收藏者: