delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/21/17:31:55

From: Campbell Allan <allanca AT dcs DOT gla DOT ac DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Sets
Date: Tue, 21 Oct 1997 18:20:37 +0100
Organization: Department of Computing Science - Glasgow University
Lines: 20
Message-ID: <344CE465.7BB0@dcs.gla.ac.uk>
References: <621b72$bg$1 AT hyperion DOT nitco DOT com> <629u5s$t8b AT freenet-news DOT carleton DOT ca>
NNTP-Posting-Host: keppel.dcs.gla.ac.uk
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Paul Derbyshire wrote:
> 
> Chris Kern (ckern AT junkmailnetnitco DOT net) writes:
> > Is there a way to do sets in C?
> 
> If you're willing to use C++, the STL has a set class in some .h file.
> Look for it in your djgpp directory \lang\cxx. If you do not consider C++
> an option, you're on your own. :-)
> --

Maybe I'm a bit naive but would it be too difficult to implement some
stuff on your own? There are only a few operations that you do on sets.
Namely add an item, remove an item, retrieve/list items (matching a
certain criteria), among a few others depending on what you want to do
with your sets. If your having trouble with a C version I'll be glad to
help just mail me. 

Campbell
---------------------
allanca AT dcs DOT gla DOT ac DOT uk

- Raw text -


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