PLEASE NOTE: the upgrades to this server,, 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


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 35 (2nd semester, week 6) ↓
SVG not supported

Login to reply

5:36am Sat 3rd Sep, Christopher M.

"Christofle Sangkanpara" <23*9*7*[email protected]*u*e*t*u*a*e*u*a*> wrote:
> is there a way to use sets in c? I've tried google but most of the answers are flying over my head. I want to set a Set with names of the valid month and commands in estimates files to cross-check inputs. > > Should I just use an array, and iterate through it? or is there a more straightforward approach?
As you've discovered, there's no native support for sets in C, and no widely adopted 3rd-party approach. Most implementations, yes, just use arrays of bools or chars; more exotic ones, often seen in code for vector embedding, etc, use all individual bits of *huge* arrays. In all cases, you need to determine what operations you may require, such as set membership, union, intersection.... BUT, I really don't see a need for sets in this project.

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