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
10 articles posted by this person
Showing 10 of 919 articles.
Currently 3 other people reading this forum.


 UWA week 42 (2nd semester, week 12) ↓
SVG not supported 3:34pm Wed 19th Oct, James A.

I'm partial to xxd filename myself; it shows a side-by-side output of both the hexadecimal and ASCII representation of the file's bytes.


SVG not supported 3:30pm Wed 19th Oct, James A.

On my distribution of Linux, it seems like I need to define a feature test macro ( POSIX C SOURCE 200809L ) to expose functions like opendir() and readdir() when compiling in -std c11 mode. Try having a look at the manual page for opendir(...


 UWA week 40 (2nd semester, week 10) ↓
SVG not supported 11:48am Thu 6th Oct, James A.

This is correct, other than saying "just happens to be". As you are the one who determines what memory (and thus, the size of the memory) that dest points to, ensuring there is enough remaining space for the src string is your responsibility.


 UWA week 39 (2nd semester, week 9) ↓
SVG not supported 2:56pm Thu 29th Sep, James A.

It's hard to tell without looking at your system, but it sounds like there isn't enough space allocated in the destination array to hold the result. Remember, strcat doesn't contain any mechanism for allocating more space, so the destination has to ha...


 UWA week 37 (2nd semester, week 7) ↓
SVG not supported 11:02am Fri 16th Sep, James A.

One thing to be aware of here in particular is whether you are using spaces or tabs for indentation. Spaces are a consistent size across editors, whereas tabs may vary (common sizes include 4 and 8 spaces). That's not a problem, so long as you only u...


 UWA week 35 (2nd semester, week 6) ↓
SVG not supported 6:03pm Fri 2nd Sep, James A.

No, a value of 0 isn't valid in the estimates file. You can try it out in the sample solution to see how it behaves in that case.


 UWA week 33 (2nd semester, week 4) ↓
SVG not supported 4:19pm Wed 17th Aug, James A.

I think some installations come with things like autoindent and syntax highlighting turned on by default. It certainly seems that way on my home PC (running Linux Mint 20). Given this is a common problem, there's actually a specific mode that (temporaril...


 UWA week 32 (2nd semester, week 3) ↓
SVG not supported 3:37pm Tue 9th Aug, James A.

By default, the Ubuntu system has a view of your Windows filesystem mounted at the path " mnt c". So, if you navigate to " mnt c ExampleDir", you'll be able to see the same files as Windows sees at "C ExampleDir". With that in mind, you can then use st...


SVG not supported 10:15am Mon 8th Aug, James A.

Running the "wsl" command with no additional arguments should launch the default Linux distribution. You can also run "ubuntu" to specifically launch the Ubuntu distribution. There should also be an "Ubuntu" entry added to your start menu, that will brin...


 UWA week 31 (2nd semester, week 2) ↓
SVG not supported 9:45am Thu 4th Aug, James A.

So, we've got the helpful cheat-sheet on using frequent commands https teaching.csse.uwa.edu.au units CITS2002 labsheets frequentcommands.php Your shell (the program that helps you manage and run commands in your terminal) also has a bunch of handy k...

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