?? readme
字號:
Data Lab Practical QuizSolutions for Instructors- bits.c contains the solution. There is a backup in bits-solve.c.- You can build your solution btest.exe file in VC++ using the dlab.dsw workspace.- btest.exe tests your procedures for correctness by running a numberof test cases. It does not guarantee exhaustive evaluation. Inaddition, it does not check your code for compliance with the codingguidelines. You will have to do that manually.Here are the command line options for btest: -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)- To grade the student's handins, you have two options. Option 1: You can manually copy each student's solution to bits.c inthis directory, rebuild the btest.exe driver, and then run it with the"-g" option. This will produce a summary of the correctness score.Option 2: If you have Perl and Cygwin, you can run thegrade-datalab.pl script on each student bits.c file. This willautomatically copy everything to a temp directory, compile and linkthe student's bits.c file, run the resulting btest.exe file, andoutput a grade report on stdout.- To grade the student's handins, you have three options. Option 0: Do it by hand: Manually view each puzzle solution and try todetermine whether it is correct or not.Option 1: Use the btest.exe driver: Copy each student's solution tobits.c in this directory, rebuild the btest.exe driver, and then runit with the "-g" option. This will produce a summary of thecorrectness score.Option 2: Use the grade-datalab.pl autograder: If you have Perl andCygwin, you can run the grade-datalab.pl script on each student bits.cfile. This will automatically copy everything to a temp directory,compile and link the student's bits.c file, run the resultingbtest.exe file, and output a grade report on stdout. The script getsthe driver files (e.g., btest.c, btest.h, ...) from the currentdirectory, unless told otherwise by the "-s" option. Typegrade-datalab.pl -h for a list of the arguments.Example usage:If you're running the script in its own directory, then use the -fargument to give the arbitrary pathname to the student handin file youwant to test: grade-datalab.pl -f /home/droh/handins/lopez/bits.cOtherwise, if you're running the script from outside itsdirectory, then you'll need to use the -s option to tellthe script exactly where to find the driver files. For example,if the script is housed in directory ./solution, then you could invoke it as follows: ./solution/grade-datalab.pl -f /home/droh/handins/lopez/bits.c -s solution
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -