Topic: Silly Question...
Author: Robert Kapeller <e8727334@stud4.tuwien.ac.at>
Date: 1999/10/24 Raw View
HI!
I'm new in C++-Programming.
I always read about "C++ Standard Library" in this postings. What
exactly are the standard-libs. Is - for example - 'Stirng' a standard in
c++? What classes are defined by the c++ standard libs? When I'm using
just standard c++ libs, is it sure that the program will compile on
another c++ standard compliant compiler, without using 3rd party
classes?
Last but not least (if you're not aleady bored): Are there some
resources answering this questions?
Thak's - robert.
---
[ 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: Darin Adler <darin@bentspoon.com>
Date: 1999/10/25 Raw View
Robert Kapeller <e8727334@stud4.tuwien.ac.at> wrote:
> I always read about "C++ Standard Library" in this postings. What
> exactly are the standard-libs.
The C++ Standard Library is the library defined in the C++ Standard. Many
implementation provide additional libraries.
> Is - for example - 'Stirng' a standard in c++?
Yes, the standard includes a typedef "std::string".
> What classes are defined by the c++ standard libs?
For a complete list you need to consult the standard document itself. There
are about 50 headers in the standard library, and I'm sure there are at
*least* 50 classes. In many cases, the library provides class templates,
making it hard to count the number of classes.
> When I'm using just standard c++ libs, is it sure that the program will
> compile on another c++ standard compliant compiler, without using 3rd party
> classes?
Basically, yes, although I'm not sure about the word "sure".
Both the language and the library are described in the standard, you should
be able to use any feature of either with a standard-compliant
compiler/library combination.
> Last but not least (if you're not aleady bored): Are there some
> resources answering this questions?
My favorite resource for answers to these questions is the standard itself.
An electronic copy is available; see section B.1 of the news group FAQ
(there's a link to it below).
My second-favorite resource is Stroustrup's The C++ Programming Language,
3rd Edition; see section C.9 of the news group FAQ (again, you can use the
link below).
-- Darin
---
[ 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: "James Kuyper Jr." <kuyper@wizard.net>
Date: 1999/10/25 Raw View
Robert Kapeller wrote:
>
> HI!
>
> I'm new in C++-Programming.
> I always read about "C++ Standard Library" in this postings. What
> exactly are the standard-libs. Is - for example - 'Stirng' a standard in
> c++? What classes are defined by the c++ standard libs? When I'm using
Get a copy of the C++ standard - follow the links at the bottom of every
comp.std.c++ message. It costs $18 in the US. There are dozens
(hundreds?) of standard library classes. 'std::string' (note
capitalization and spelling) is a typedef for a specialization of one
the standard library template classes.
> just standard c++ libs, is it sure that the program will compile on
> another c++ standard compliant compiler, without using 3rd party
> classes?
In principle, yes. In practice, only if you pay very close attention to
what things are guaranteed by the standard, and which things are
implementation-specific. Without a copy of the standard, you're going to
have trouble with that. It's not very easy even when you do know,
particularly since there aren't any fully compliant implementations yet.
> Last but not least (if you're not aleady bored): Are there some
> resources answering this questions?
See the links below:
---
[ 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: comeau@panix.com (Greg Comeau)
Date: 1999/10/25 Raw View
In article <3811C26D.D8384621@stud2.tuwien.ac.at> Robert Kapeller <e8727334@stud4.tuwien.ac.at> writes:
>I'm new in C++-Programming.
>I always read about "C++ Standard Library" in this postings. What
>exactly are the standard-libs.
STL, iostreams, numeric, string, etc.
>Is - for example - 'Stirng' a standard in c++?
'string' is, yes.
>What classes are defined by the c++ standard libs?
See a good reference (Stroustrup, Lippman, Josuttis, etc).
>When I'm using just standard c++ libs, is it sure that the program
>will compile on another c++ standard compliant compiler,
>without using 3rd party classes?
The goal is that programs using a Standard conforming compiler
and a Standard conforming lib would be ok with another Standard
conforming compiler and Standard conforming lib.
>Last but not least (if you're not aleady bored): Are there some
>resources answering this questions?
Check out http://www.comeaucomputing.com/resources/litsuggs.html
- Greg
--
Comeau Computing, 91-34 120th Street, Richmond Hill, NY, 11418-3214
Producers of Comeau C/C++ 4.2.38 -- NOTE 4.2.42 BETAS NOW AVAILABLE
Email: comeau@comeaucomputing.com / Voice:718-945-0009 / Fax:718-441-2310
*** WEB: http://www.comeaucomputing.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 ]