PLEASE NOTE: this server, secure.csse.uwa.edu.au, will be unavailable on WEDNESDAY 7th December, from 1pm until 4pm.
Web-based programs, such as csmarks, cssubmit, and the help fora, will all be unavailable.
  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 selected article
Showing 1 of 919 articles.
Currently 4 other people reading this forum.


 UWA week 37 (2nd semester, week 7) ↓
SVG not supported

Login to reply

👍x1
helpful
2:07pm Sun 18th Sep, Christopher M.

ANONYMOUS wrote:
> If I'm not mistaken, the preprocessor will throw a fit at: #define N 10 ;
There's nothing invalid about having a semicolon on a pre-processor line. A frequently seen technique, attempting to make code more readable, is to use something like:
 #define  FOREACH_NODE       for(int n=0 ; n < nnodes ; ++n)
Remember that the pre-processor is performing textual substitution, and doesn't need/attempt to check the validity of C syntax, and can be used as a general utility to modify any text (not just programs).

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