It's UWAweek 19

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 selected article
Showing 1 of 1168 articles.
Currently 21 other people reading this forum.


SVG not supported

Login to reply

👍?
helpful
11:43am Mon 23rd Oct, ANONYMOUS

Hello, Is it important to have functions ordered properly? For example, if I have: void foo() { bar(); } void bar() { printf("bar\n"); } This results in an error because you can't call bar() above where bar() is declared. This is a simple fix on a computer because I can just copy paste the code to reorder it. This is a tough fix on a piece of paper because there's no copy paste (unless scissors and glue are allowed). Will we be forgiven for things like this? Would it be especially aggregious to have main() at the very top of the page, despite it usually being at the bottom? My reason is, main() is the logical start to the solution, so that's one of the first things that I'd write. I don't like writing main() towards the bottom and leaving a gap because I might run out of room. If I run out of room, then I'd have to write functions below main(), which defeats the purpose of leaving the gap in the first place. Also is pencil allowed? Thanks

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