PLEASE NOTE: the upgrades to this server, secure.csse.uwa.edu.au, have not yet been completed.
Hopefully the changes will be completed on THURSDAY 8th December.
Web-based programs, such as csmarks, cssubmit, and the help fora, will be unavailable at some time on Thursday 8th.
  It's UWAweek 49

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 20 tagged articles
Showing 20 of 919 articles.
Currently 2 other people reading this forum.


 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.


SVG not supported 3:02am Mon 3rd Oct, Christopher M.

Yes. You need to provide sufficient space for dest before calling strcat p() You can increase the space associated with a pointer, and copy its original data too, with realloc() but, of course, that requires the pointer to have fir...


 UWA week 39 (2nd semester, week 9) ↓
SVG not supported 4:21pm Fri 30th Sep, Gihad C.

Piggybacking on this thread as I had a related question... From what I understand, strcat p only works as intended when there just happens to be enough memory adjacent to the dest string where we can copy the entire src (plus ' 0'). If there happene...


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...


SVG not supported 9:19am Thu 29th Sep, Monti C.

Hi, I'm having an issue with my strcat p function where I'm getting an EXC BAD ACCESS code 2 error which occurs with the sample solution also. I've attempted to debug it and found that the addresses of dest and src are next to each other, so I'm assumi...


 UWA week 34 (2nd semester, week 5) ↓
SVG not supported 12:14pm Mon 22nd Aug, Christopher M.

ANONYMOUS wrote Neither question requires a sorting algorithm. There are far simpler solutions (because you don't need to sort the data).


SVG not supported 12:09pm Mon 22nd Aug, ANONYMOUS

I'm looking at Labsheet 2 and questions 3 and 4 are about some sort of sorting algorithm. Which sorting algorithm would be the best to learn? Is it really worth it to learn a difficult but complicated sorting algorithm or is it enough if I settle wit...


 UWA week 32 (2nd semester, week 3) ↓
SVG not supported 6:40pm Sun 14th Aug, Christopher M.

A reminder that this Wednesday 17th is PROSH, so our lab at 10-12 on Wednesday morning will be cancelled, but we'll be back for the 2-4 afternoon lab https teaching.csse.uwa.edu.au units CITS2002 info-prosh.php


 UWA week 31 (2nd semester, week 2) ↓
SVG not supported 7:46am Sun 7th Aug, Christopher M.

Hello Juliana, I've found it a bit difficult to understand your question, so there may be some assumptions misunderstandings in my reply. Firstly, to help understanding, let's not say "C script". The C source code is text to be (correctly) compiled be...


SVG not supported 7:20am Sun 7th Aug, Christopher M.

I suggest that, when using C's standard I O formatting functions, that you use i instead of d when dealing with integers. For printf() there is no difference, but when reading input with scanf() i is a better choice as it makes the han...


SVG not supported 2:58pm Sat 6th Aug, Matthew C.

It should be printf("Receives d x 50 cent coins n", i);


SVG not supported 2:16pm Sat 6th Aug, Juliana SF.

For the last question of the refresher tasks I have made it so that the 2D array that is pulled by the c file is randomised 10x20 per the question description, nested a loop so that it checks for rows and column to find the largest number and then on...


SVG not supported 1:04pm Sat 6th Aug, ANONYMOUS

Hi, I'm trying to print an integer in between two strings but I'm getting an error that says "warning too many arguments for format -Wformat-extra-args (as attached below) but I'm not sure what I'm supposed to do. My code is as follows printf (" ...


SVG not supported 12:59am Thu 4th Aug, ANONYMOUS

You don't have to modify the code to accept multiple arguments in the sense that argvalue already contains all the arguments passed to the program. You can see this with the following program This program prints out all the arguments passed ...


SVG not supported 2:13pm Tue 2nd Aug, Christopher M.

ANONYMOUS wrote It actually says more than just "error", it explicitly reports the problem. In fact, the problem is detected and reported by the rotate program itself, not by the shell or any other systems program. You need to invoke the rotate program...


SVG not supported 12:24pm Tue 2nd Aug, ANONYMOUS

when I copy the code and trying to executed it, it says error


SVG not supported 8:54am Tue 2nd Aug, Christopher M.

Hi Chris, Our first lab each week is at 10am Mondays (after the 9am lecture) and you should have sufficient knowledge to (at least commence) it after the previous week's lectures (and Friday workshop, if that helps you). But the the lectures and labs d...


SVG not supported 7:29am Tue 2nd Aug, Christopher B.

At the risk of confusing things, Labsheet 1 is in Week 2. Should I have enough knowledge after Week 1 lectures and study to attempt this labsheet, or should I complete Week 2 lectures first? Thanks Chris


SVG not supported 7:48pm Mon 1st Aug, Christopher M.

The Face-to-face Lab is on Wednesdays 2-4pm. The Online lab is on Thursdays, 2-4pm. For reasons explained on our unit's homepage, you can ignore the CAS times. Thanks for reporting the problem.


SVG not supported 6:53pm Mon 1st Aug, Haoxuan L.

Hi just want to sate a contradiction I noticed. It says there is a face to face lab session 2-4pm on Wednesday but on top left it says its online. This session also doesn't exist on CAS. What is the verdict?

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  1:17AM Sep 14 2022
Privacy policy