C++ Library Reference |
Preface
The C++ Library Reference describes the C++ libraries, including:
- Tools.h++ Class Library
- Sun WorkShop Memory Monitor
- Complex
Multiplatform Release
This Sun WorkShop release supports versions 2.6, 7, and 8 of the SolarisTM SPARCTM Platform Edition and Solaris Intel Platform Edition Operating Environments.
Note In this document, the term "IA" refers to the Intel 32-bit processor architecture, which includes the Pentium, Pentium Pro, and Pentium II, Pentium II Xeon, Celeron, Pentium III, and Pentium III Xeon processors and compatible microprocessor chips made by AMD and Cyrix.
Access to Sun WorkShop Development Tools
Because Sun WorkShop product components and man pages do not install into the standard
/usr/bin/
and/usr/share/man
directories, you must change yourPATH
andMANPATH
environment variables to enable access to Sun WorkShop compilers and tools.To determine if you need to set your
PATH
environment variable:1. Display the current value of thePATH
variable by typing:
%
echo $PATH
2. Review the output for a string of paths containing/opt/SUNWspro/bin/
.
- If you find the paths, your
PATH
variable is already set to access Sun WorkShop development tools. If you do not find the paths, set yourPATH
environment variable by following the instructions in this section.To determine if you need to set your
MANPATH
environment variable:1. Request theworkshop
man page by typing:
%
man workshop
2. Review the output, if any.
- If the
workshop
(1) man page cannot be found or if the man page displayed is not for the current version of the software installed, follow the instructions in this section for setting yourMANPATH
environment variable.
Note The information in this section assumes that your Sun WorkShop 6 products were installed in the/opt
directory. If your Sun WorkShop software is not installed in the/opt
directory, ask your system administrator for the equivalent path on your system.
The
PATH
andMANPATH
variables should be set in your home.cshrc
file if you are using the C shell or in your home.profile
file if you are using the Bourne or Korn shells:
- To use Sun WorkShop commands, add the following to your
PATH
variable:
/opt/SUNWspro/bin
- To access Sun WorkShop man pages with the
man
command, add the following to yourMANPATH
variable:
/opt/SUNWspro/man
For more information about the
PATH
variable, see the csh(1), sh(1), and ksh(1) man pages. For more information about theMANPATH
variable, see the man(1) man page. For more information about setting yourPATH
andMANPATH
variables to access this release, see the Sun WorkShop 6 Installation Guide or your system administrator.How This Book Is Organized
This book contains the following chapters:
Chapter 1, "Introduction to C++ Libraries," gives an overview of the C++ libraries.
Chapter 2, "The Complex Arithmetic Library," explains the arithmetic operators and mathematical functions in the library.
Chapter 3, "The Classic iostream Library," discusses the classic implementation of of the input and output facility used in C++.
Chapter 4, "Using Classic iostreams in a Multithreading Environment," details how to use the classic
iostream
library for input and output in a multithreaded environment.Chapter 5, "The C++ Standard Library," gives a brief overview of the standard library.
Typographic Conventions
TABLE P-1
shows the typographic conventions that are used in Sun WorkShop documentation.
Shell Prompts
TABLE P-2 shows the default system prompt and superuser prompt for the C shell, Bourne shell, and Korn shell.
TABLE P-2 Shell Prompts C shell %
Bourne shell and Korn shell $
C shell, Bourne shell, and Korn shell superuser #
Related Documentation
You can access documentation related to the subject matter of this book in the following ways:
- Through the Internet at the
docs.sun.com
sm Web site. You can search for a specific book title or you can browse by subject, document collection, or product at the following Web site:
http://docs.sun.com
- Through the installed Sun WorkShop products on your local system or network. Sun WorkShop 6 HTML documents (manuals, online help, man pages, component readme files, and release notes) are available with your installed Sun WorkShop 6 products. To access the HTML documentation, do one of the following:
- In any Sun WorkShop or Sun WorkShopTM TeamWare window, choose Help About Documentation.
- In your NetscapeTM Communicator 4.0 or compatible version browser, open the following file:
- (If your Sun WorkShop software is not installed in the /opt directory, ask your system administrator for the equivalent path on your system.) Your browser displays an index of Sun WorkShop 6 HTML documents. To open a document in the index, click the document's title.
Document Collections
TABLE P-3 lists related Sun WorkShop 6 manuals by document collection.
TABLE P-4 describes related Solaris documentation available through the
docs.sun.com
Web site.
Man Pages
The C++ Library Reference lists the man pages that are available for the C++ libraries. TABLE P-5 lists other man pages that are related to C++.
README
FileThe
README
file highlights important information about the compiler, including:
- New and changed features
- Software incompatibilities
- Current software bugs
- Information discovered after the manuals were printed
To view the text version of the C++ compiler
README
file, type the following at a command prompt:
example%CC -xhelp=readme
To access the HTML version of the
README
, in your Netscape Communicator 4.0 or compatible version browser, open the following file:(If your Sun WorkShop software is not installed in the
/opt
directory, ask your system administrator for the equivalent path on your system.) Your browser displays an index of Sun WorkShop 6 HTML documents. To open theREADME,
find its entry in the index, then click the title.Commercially Available Books
The following is a partial list of available books on the C++ language.
The C++ Standard Library, Nicolai Josuttis (Addison-Wesley, 1999).
Generic Programming and the STL, Matthew Austern, (Addison-Wesley, 1999).
Standard C++ IOStreams and Locales, Angelika Langer and Klaus Kreft (Addison-Wesley, 2000).
Thinking in C++, Volume 1, Second Edition, Bruce Eckel (Prentice Hall, 2000).
The Annotated C++ Reference Manual, Margaret A. Ellis and Bjarne Stroustrup (Addison-Wesley, 1990).
Design Patterns: Elements of Reusable Object-Oriented Software, Erich Gamma, Richard Helm, Ralph Johnson and John Vlissides, (Addison-Wesley, 1995).
C++ Primer, Third Edition, Stanley B. Lippman and Josee Lajoie (Addison-Wesley, 1998).
Effective C++--50 Ways to Improve Your Programs and Designs, Second Edition, Scott Meyers (Addison-Wesley, 1998).
More Effective C++--35 Ways to Improve Your Programs and Designs, Scott Meyers (Addison-Wesley, 1996).
Sun Microsystems, Inc. Copyright information. All rights reserved. Feedback |
Library | Contents | Previous | Next | Index |