Topic: C++ Library
Author: James Kuyper <kuyper@wizard.net>
Date: 2000/05/25 Raw View
Mansel Lavery wrote:
>
> My first question so if its out of place sorry.
>
> First part anyone know of a good C++ library function for a link list?
> Just need it too store numbers.
std::list<> is a class template for a container which is usually
implemented using a linked list.
> Also does anyone have a webpage or know how I can aquire a list of the
> library functions? I could really use a reference to the library using
> "man" is not very effective in finding out.
Such a list should be part of your implementation's documentation; you
should complain to the implementor if it isn't.
Another source is the C++ standard itself, but that has the disadvantage
of being written in standardese. The standard is not well written for
learning how to use the library. However, if you want to know what you
should be able to count on across implementations, follow the links that
appear at the bottom of every message on this newsgroup. Those will tell
you how to buy a copy of the standard.
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html ]
Author: Michiel Salters <salters@lucent.com>
Date: 2000/05/25 Raw View
Mansel Lavery wrote:
> My first question so if its out of place sorry.
comp.lang.c++ or comp.lang.c++.moderated would have been better,
but I'll answer it here anyway. Follow-up is set to clc++m.
> First part anyone know of a good C++ library function for a link list?
> Just need it too store numbers.
Look at std::list<int>. It comes with all modern compilers. Older
compilers may not yet recognize std::, but provide the same template.
>
> Also does anyone have a webpage or know how I can aquire a list of the
> library functions? I could really use a reference to the library using
> "man" is not very effective in finding out.
SGI has a quite complete overview, but I don't remember the exact URL.
However, IIRC either the FAQ for this group [ URL below ] or the
FAQ of clc++m will tell you this.
> thanks
> Shadow
HTH,
Michiel Salters
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html ]
Author: Rob Stewart <donotspamme@giage.com>
Date: 2000/05/25 Raw View
Mansel Lavery wrote:
>
> My first question so if its out of place sorry.
Such questions are not about the language, but rather about it's
use, so I think you'll find comp.lang.c++.moderated better
suited.
> First part anyone know of a good C++ library function for a link list?
> Just need it too store numbers.
std::list is a template class:
#include <list>
int main()
{
std::list<int> l; // a list to store numbers
}
> Also does anyone have a webpage or know how I can aquire a list of the
> library functions? I could really use a reference to the library using
> "man" is not very effective in finding out.
You can get general information from a variety of sources. There
are several good books. Depending upon your compiler, you might
be interested in http://www.dinkumware.com/libraries_ref.html or
http://www.sgi.com/Technology/STL.
--
Robert Stewart | rob-at-giage-dot-com
Software Engineer | using std::disclaimer;
Giage, Inc. | http://www.giage.com
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html ]
Author: "Erik Post" <erik.post@student.utwente.nl>
Date: 2000/05/25 Raw View
"Mansel Lavery" <mansel-lavery@home.com> wrote in message
news:3929B69E.7CB02C4E@home.com...
> My first question so if its out of place sorry.
>
> First part anyone know of a good C++ library function for a link list?
> Just need it too store numbers.
I'd say go with Standard Template Library. It has a list container that is a
doubly linked list. The slist container is a singly linked list. It should
be included with most recent compilers. There are also free versions
available (STLport http://www.stlport.org/ and the SGI one, see link below,
come to mind).
> Also does anyone have a webpage or know how I can aquire a list of the
> library functions? I could really use a reference to the library using
> "man" is not very effective in finding out.
http://www.sgi.com/Technology/STL/index.html has lots of good information on
the Standard Template Library.
Erik
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html ]
Author: Mansel Lavery <mansel-lavery@home.com>
Date: 2000/05/24 Raw View
My first question so if its out of place sorry.
First part anyone know of a good C++ library function for a link list?
Just need it too store numbers.
Also does anyone have a webpage or know how I can aquire a list of the
library functions? I could really use a reference to the library using
"man" is not very effective in finding out.
thanks
Shadow
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html ]