It's UWAweek 11

help2002

This forum is provided to promote discussion amongst students enrolled in CITS2002 Systems Programming.
Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.
Displaying selected article
Showing 1 of 1168 articles.
Currently 2 other people reading this forum.


SVG not supported

Login to reply

👍?
helpful
3:57am Wed 6th Sep, Christopher M.

"Jacob Read" <23*7*9*6@s*u*e*t*u*a*e*u*a*> wrote:
> Something tells me there might be some overflow in the sample solution. The timing definitely shouldn't be negative. This is using:
I believe the problem reporting negative I/O times has been corrected. Please report any problems. The arithmetic was being performed using a standard int (4 bytes), which overflowed with larger (faster) I/O speeds. If you're having similar problems, you can perform the arithmetic using int64_t or double. You may like to read about the ceil() function, too.

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  8:08AM Aug 25 2024
Privacy policy