05-26-2005, 04:24 AM
Lithium,
I can't figure out how to test your solution, so, I'm going to ask you to do the same as I previously asked logiclrd, which is:
Write and post, a test program using your solution, that prints onto a workfile every value from -32768 tp 32766 on individual lines, and on the same line prints the resultant value which has been shifted left and rotated 2 bits.
The format for the output is:
PRINT #1,INPUT.INTEGER , RESULT.INTEGER
where #1 is the output workfile you opened.
I should then be able to take your test program, compile it, and run it producing the workfile. I'll then examine the workfile and make sure the results are correct.
Thanks.
*****
I can't figure out how to test your solution, so, I'm going to ask you to do the same as I previously asked logiclrd, which is:
Write and post, a test program using your solution, that prints onto a workfile every value from -32768 tp 32766 on individual lines, and on the same line prints the resultant value which has been shifted left and rotated 2 bits.
The format for the output is:
PRINT #1,INPUT.INTEGER , RESULT.INTEGER
where #1 is the output workfile you opened.
I should then be able to take your test program, compile it, and run it producing the workfile. I'll then examine the workfile and make sure the results are correct.
Thanks.
*****