It's UWAweek 39 (2nd semester, week 9)

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.

click
Displaying 21 tagged articles
Showing 21 of 641 articles.
Currently 5 other people reading this forum.


 UWA week 34 (2nd semester, week 5) ↓
SVG not supported 7:40am Sun 20th Aug, Christopher M.

There is a (rare) case where you may need to consider their difference - exit() terminates the current process, no matter where (from which function) it's called. If exit() is called from main() the whole process terminates. - re...


 UWA week 33 (2nd semester, week 4) ↓
SVG not supported 12:47pm Sat 19th Aug, Rory C.

Is there a reason to use exit() over return to terminate a program, or are they equivalent in behaviour?


SVG not supported 4:01am Wed 16th Aug, Christopher M.

Someone sent in this question by email The main() function may return (to the operating system) by calling the exit() function, simply calling return, or 'dropping off' the bottom curly bracket. In the last 2 cases, no call to exit() ...


SVG not supported 12:04pm Tue 15th Aug, Christopher M.

ANONYMOUS wrote When formatting output with printf() and friends, there really is no difference. However when scanning parsing input with scanf() and friends, using " i" supports reading in integers in different numeric bases, such as base-10 (decimal...


SVG not supported 10:24am Tue 15th Aug, ANONYMOUS

I've noticed that both d and i have been used in labs and workshop solutions to print information stored in variables with 'int' datatype. I don't understand when to use which one. Is there a difference between them or can they be used interchangea...


SVG not supported 4:35am Mon 14th Aug, Christopher M.

Just "Chris". Glad that you resolved the problem, even if it took such drastic measures. I can't imagine how why you'd be seeing the error you did without it also appearing in so many other situations.


SVG not supported 3:47pm Sun 13th Aug, Jie W.

Hi Professor Really appreciated your time to try. just letting you know, I reinstalled xcode and restarted my laptop. copy the code into a new file change the name. it's all good now. really not sure why was that. Thanks again. J


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

This problem has me stumped. I've tried your code on 2 Apple M2 (Xcode) installations, Ubuntu Linux (gcc), and Redhat Linux (an earlier gcc), and all produced the expected result. I can't imagine why your installation would produce those weird, large v...


 UWA week 32 (2nd semester, week 3) ↓
SVG not supported 9:11pm Wed 9th Aug, Jie W.

Hi Professor thanks for checking with me, as I'm a FIFO engineer, i just back to perth tonight. here's the code for this refresh task. the rest of the tasks are all good, just this first one gave me a funny result. thank you so much for your support. ...


SVG not supported 7:59am Wed 9th Aug, Christopher M.

Did you make any progress in solving this problem, Jie?


SVG not supported 4:02am Mon 7th Aug, Christopher M.

Just "Chris". I'm afraid that I can't tell from your description alone. It's likely to be the use of an incorrect datatype or a formatting error - not sure. As the exercise is not being assessed, please post your code here.


SVG not supported 7:38pm Sun 6th Aug, Jie W.

Hi Sir Experienced weird result for the lab 1 first task (coin change). Run the program in my laptop, enter 75 as purchase value in cents. The result as follow The change is 25 cents. 1 x 20c. 3414288 x 10c. 1 x 5c. 1873589824 x 2c. 1 x 1c. which is not what ...


 UWA week 31 (2nd semester, week 2) ↓
SVG not supported 3:06pm Mon 31st Jul, Christopher M.

The webpage https askubuntu.com questions 161652 how-to-change-the-default-font-size-of-xterm gives a simple solution. In your existing xterm, execute prompt echo 'xterm font -fixed- - - -18- ' .Xresources prompt xrdb -merge ...


SVG not supported 2:37pm Mon 31st Jul, Hugo S.

I'm just getting started with xterm but the font is painfully small, can anyone help me change it?


SVG not supported 5:32am Mon 31st Jul, Christopher M.

(I'm afraid) it's working for me this morning; no-one else reported a problem, so hopefully it was just a transient problem.


SVG not supported 12:00pm Sun 30th Jul, Martin P.

The link to 'Linux and C compiler basics' seems broken. I cannot access the page. Anyone encountered the same problem? Help appreciated. Thank You.


 UWA week 30 (2nd semester, week 1) ↓
SVG not supported 7:27am Sat 29th Jul, Salman N.

i followed all the steps, its just when i want the manpages-posix and manpages-posix-dev, my WSL keeps saying "Unable to locate package"


SVG not supported 5:02am Sat 29th Jul, Christopher M.

Thanks. I'd presumed that they'd already done that, if (hopefully) following the instructions here https teaching.csse.uwa.edu.au units CITS2002 labsheets software.php But maybe.... The package manpages-posix is correctly named and still exists, https...


SVG not supported 12:22pm Fri 28th Jul, Sebastian G.

try running '''sudo apt-get update sudo apt-get upgrade''' and then running '''sudo apt install man-db manpages-posix''' )


SVG not supported 12:17pm Fri 28th Jul, Salman N.

Hello Sir, When running this command "sudo apt install man-db manpages-posix, everything goes well, but then I get an error saying "Unable to locate package manpages-posix"


SVG not supported 4:31pm Thu 27th Jul, Christopher M.

While there are no structured lab sessions in Week-1, you may like to start reading some introductory material on using the Linux operating system and the standard C compiler (including the C compiler on your Mac, if that is your chosen platform). In...

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  5:07AM Sep 06 2023
Privacy policy