It's UWAweek 47

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 the 2 articles in this topic
Showing 2 of 828 articles.
Currently 98 other people reading this forum.


 UWA week 41 (2nd semester, week 11) ↓
SVG not supported

Login to reply

👍?
helpful
12:08pm Thu 10th Oct, ANONYMOUS

Hi, After I ran the in.txt [0 2 1 3 3 2 2 0 2 1 0 2 3 0], the out.txt format was as shown in the figure. I checked all the records in the help2002 and saw that some people had a ";" after the last line, while others did not. My result did not have a ";". 1)I would like to know what the final correct format should be? Is there an accurate standard? Will I be deducted marks if the format is not standard? 2)If no memory is explicitly allocated for each PageEntry structure, will I be deducted marks? 3)If the allocated memory is not released when the program ends, will I be deducted marks? Thank you for the detailed clarifications!



This article has 1 attachment:

 

SVG not supported

Login to reply

👍?
helpful
12:15pm Thu 10th Oct, Joshua N.

ANONYMOUS wrote:
> Hi, > After I ran the in.txt [0 2 1 3 3 2 2 0 2 1 0 2 3 0], the out.txt format was as shown in the figure. I checked all the records in the help2002 and saw that some people had a ";" after the last line, while others did not. My result did not have a ";". > > 1)I would like to know what the final correct format should be? Is there an accurate standard? Will I be deducted marks if the format is not standard?
Amitava needs to clarify. I'm assuming you don't need a ";" at the end.
> 2)If no memory is explicitly allocated for each PageEntry structure, will I be deducted marks?
If memory isn't allocated, then how are you able to store anything in your structure?
> 3)If the allocated memory is not released when the program ends, will I be deducted marks?
Most likely, it's bad practice to not free dynamically allocated (or malloced) memory.
> Thank you for the detailed clarifications!

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