delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/18/08:47:10

From: ckern AT junkmailnetnitco DOT net (Chris Kern)
Newsgroups: comp.os.msdos.djgpp
Subject: Sets
Date: Wed, 15 Oct 1997 02:57:03 GMT
Organization: NetNITCO Internet Services
Lines: 16
Message-ID: <621b72$bg$1@hyperion.nitco.com>
Reply-To: ckern AT junkmailnetnitco DOT net
NNTP-Posting-Host: misc45.nitco.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Is there a way to do sets in C?  I can make an enum, but I haven't
seen anything about sets.  If you don't know what I'm talking about,
in Pascal, the code would be 

type
  objects = (o1,o2,o3,o4);
 
var
  inventory: set of objects;

(or something like that :)

-Chris
Remove "junkmail" in my return address to reply.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019