It's UWAweek 5

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.

 Posts from 2022 will be available until after the Deferred and Supplementary Exams
15 articles posted by this person
Showing 15 of 919 articles.
Currently 10 other people reading this forum.


 UWA week 42 (2nd semester, week 12) ↓
SVG not supported 7:54pm Thu 20th Oct, Cohen R.

That's about what I was thinking, thanks for the response


SVG not supported 5:58pm Thu 20th Oct, Cohen R.

Hello, I have been struggling to figure out how to read a string line by line. Everything I have found is about reading files not variables. I want to use something like fgets but fgets needs a file pointer as input. Is there a way use fgets for a loc...


 UWA week 40 (2nd semester, week 10) ↓
SVG not supported 9:37am Thu 6th Oct, Cohen R.

Thank you I figured it out but now I have another problem. It wasn't spaces but realpath is adding v at the end instead of the path v mnt c Users ... Project2 test mnt c Users ... Project2 v and this is causing it not to work. Do you have any idea ...


SVG not supported 9:10am Thu 6th Oct, Cohen R.

Hi, I was doing the project and I kept getting errors about opening directories and I soon found out that it was because my directory names have spaces in them. Is there a way to solve this? I tried just adding quoted in the command line but when I t...


SVG not supported 1:20pm Mon 3rd Oct, Cohen R.

For the second prompt for building a file it mentions the names of files will be given by a filelist in the command prompt. I am unsure about what sort of formatting the filelist will have. Will the names of the files be space separated, comma separa...


SVG not supported 1:13pm Mon 3rd Oct, Cohen R.

Sorry, I didn't see that. Thank you


SVG not supported 1:12pm Mon 3rd Oct, Cohen R.

Are the words that can be stored in the dictionary words that are valid in a dictionary of words or any sequence of characters? (would you store something like jdskjdku). If it is just any sequence of characters, the task has outlined that it is onl...


SVG not supported 12:49pm Mon 3rd Oct, Cohen R.

In the task it says the index file should be stored as a compressed file. The first thing that came to my mind was a hashtable. Does this count as a compressed file? I'm not sure about what a compressed file means. Thank you


 UWA week 35 (2nd semester, week 6) ↓
SVG not supported 3:04pm Fri 2nd Sep, Cohen R.

Can a program have a runtime value of 0 in the estimates file. I discovered that if there would be 0 or negative value it would mess up my program. Should I throw an error if I see this? Thank you


SVG not supported 11:04am Tue 30th Aug, Cohen R.

I'm storing many of my values into int arrays but since there can also be I don't know what value I should use to store them. I'm thinking of -1 or NULL but would be wondering if there would be an issue with either of these (convention or otherwise...


SVG not supported 4:27pm Mon 29th Aug, Cohen R.

Aaah sorry, your message didn't come up. Thank you for the response. I did try fflush and it still didn't work. I will try out setbuf( stdout, NULL ); Thank you


SVG not supported 4:24pm Mon 29th Aug, Cohen R.

Nevermind, I changed some stuff and now it's working. I still have no idea what happened though. if anyone has any idea, please still let me know.


SVG not supported 2:35pm Mon 29th Aug, Cohen R.

Hello, I am having a weird error with my print statements where when I do printf(" c", ch); nothing prints on the screen but when I do printf(" c n", ch); all the characters print a line apart. Do you have any idea why this might occur. I can confirm ...


 UWA week 34 (2nd semester, week 5) ↓
SVG not supported 2:42pm Thu 25th Aug, Cohen R.

When reading a file I have seen some places check for an EOF byte and some check for NULL byte. Are these the same thing and if not, what are the differences and which is preferred to use? Thank you


SVG not supported 2:48pm Tue 23rd Aug, Cohen R.

For the project 1 do we assume the current year is 2022 or do we have to find the current year?

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  2:26AM Jan 17 2023
Privacy policy