473,394 Members | 1,751 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

c++ documentation

hi,

I wish to learn c++ from knowing c. i have documentation relating to c
library functions but what is the c++ equivalent and where can i find it?

Also, is there any restriction in using the libraries i am used to using in
c programs in c++ programs?

Thanks in advance.

Jul 19 '05 #1
6 3170
"Jason" <ja***********@btinternet.com> wrote in message
news:bp**********@titan.btinternet.com...
| I wish to learn c++ from knowing c. i have documentation relating to c
| library functions but what is the c++ equivalent and where can i find it?
Some possible free documentation sources:
A free but out-of-date C++ standard defining all the libraries
can be found at: ftp://ftp.research.att.com/dist/c++std/WP/CD2/

The documentation of the library that comes with GNU C++
is available at:
http://gcc.gnu.org/onlinedocs/libstd...mentation.html

SGI STL: http://www.sgi.com/tech/stl/
Has an introduction, and docs for the algorithms and container library,
but nothing about the iostreams library.
Watch out for non-standard extensions that are included in
the documentation (e.g. all the hash_* containers are non-standard).

The online documentation of a commercially available library
can be found at http://www.dinkumware.com/refxcpp.html

For more general resources and books, see also my recent post:
http://groups.google.com/groups?selm...newshispeed.ch

| Also, is there any restriction in using the libraries i am used to using
in
| c programs in c++ programs?

No. But there are two key differences you need to take into
account to write standard-compliant C++ code:

1) #include <c*****> instead of <*****.h>
#include <cstdlib> // not #include <stdlib.h>
The C-header include will work on many platforms,
but is not portable.

2) All C library names (except a few macros) are in
the std C++ namespace. So you should write:
std::puts("hello"); //NOT: puts("hello");
Initially, you can remedy to this by adding a
single directive in your programs:
using namespace std; //rarely a good idea in real code
I hope this helps,
Ivan
--
http://ivan.vecerina.com
Jul 19 '05 #2
In article <bp**********@titan.btinternet.com>,
Jason <ja***********@btinternet.com> wrote:

I wish to learn c++ from knowing c. i have documentation relating to c
library functions but what is the c++ equivalent and where can i find it?


If you can afford to buy books, the standard references are:

Bjarne Stroustrup, "The C++ Programming Language". Get either the third
edition (paperbound) or the "special edition" (hardbound).

Nicolai Josuttis, "The C++ Standard Library".

If you can afford only one, get Stroustrup.

--
Jon Bell <jt*******@presby.edu> Presbyterian College
Dept. of Physics and Computer Science Clinton, South Carolina USA
Jul 19 '05 #3
"Jon Bell" <jt*******@presby.edu> wrote in message
news:bp**********@jtbell.presby.edu...
In article <bp**********@titan.btinternet.com>,
Jason <ja***********@btinternet.com> wrote:

I wish to learn c++ from knowing c. i have documentation relating to c
library functions but what is the c++ equivalent and where can i find it?


If you can afford to buy books, the standard references are:

Bjarne Stroustrup, "The C++ Programming Language". Get either the third
edition (paperbound) or the "special edition" (hardbound).

Nicolai Josuttis, "The C++ Standard Library".

If you can afford only one, get Stroustrup.


I have both of those books, and agree with Jon.

If you buy online, see amazon.co.uk (I'm assuming you're in the uk from your
email), they have both of those books at 50%. That's where I got mine.

--
Derek
Jul 19 '05 #4
Ivan Vecerina wrote:
The documentation of the library that comes with GNU C++
is available at:
http://gcc.gnu.org/onlinedocs/libstd...mentation.html


Does gcc come with man pages documenting the C++ libraries? Can one
type man 3 iostream as one would type man 3 stdio?

Jul 22 '05 #5

"Grumble" <in*****@kma.eu.org> wrote in message
news:bp**********@news-rocq.inria.fr...
Ivan Vecerina wrote:
The documentation of the library that comes with GNU C++
is available at:
http://gcc.gnu.org/onlinedocs/libstd...mentation.html


Does gcc come with man pages documenting the C++ libraries? Can one
type man 3 iostream as one would type man 3 stdio?


How hard could it be to actually visit gnu.org and do
a bit of reading to find out?

-Mike
Jul 22 '05 #6
>> Does gcc come with man pages documenting the C++ libraries?
Can one type man 3 iostream as one would type man 3 stdio?


How hard could it be to actually visit gnu.org and do
a bit of reading to find out?


Harder than simply asking here, that's for sure.

http://gcc.gnu.org/onlinedocs/libstd...mentation.html

In addition, an initial set of man pages are also available in
the same place as the HTML collections. Start with C++Intro(3).

ftp://gcc.gnu.org/pub/gcc/libstdc++/doxygen/

Now I'm happy :-þ

Jul 22 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
by: Daniel R. Smorey Jr. | last post by:
I'm looking for a good place for Python documentation. I'm really lost on why it's so hard to find anything when it comes to me looking up a particular function in Python. My example would be the...
11
by: Steve | last post by:
posted on: comp.lang.python emailed to: docs@python.org I have a suggestion/request that will, I think, improve the Python documentation. Currently, the Python documentation in HTML format is...
24
by: Christopher J. Bottaro | last post by:
This post is just the culmination of my thoughts and discussions with my coworkers on Python. If you are not interested, please skip over it. At my work, we are developing a product from...
0
by: Jeff Levinson [mcsd] | last post by:
I'm an architect for a very large fortune 100 company and we still struggle with the best balance. However, I use a couple of simple guidelines that have worked very well for me in almost all...
0
by: Almoni | last post by:
Hi, I have a few .xsd files that include each other in the following way: <!-- lets call the main schema file AA.xsd and it includes BB.xsd inside it --> <xs:schema...
1
by: Ole Hanson | last post by:
I would like to be able to generate documentation for a custom configuration file (xml) to enable future support engineers to understand applicable values to the various elements inside the...
97
by: Cameron Laird | last post by:
QOTW: "Python makes it easy to implement algorithms." - casevh "Most of the discussion of immutables here seems to be caused by newcomers wanting to copy an idiom from another language which...
0
by: innovasys | last post by:
TORQUAY, DEVON, UK - Innovasys announced the release of Document! X 5, the fifth version of the documentation solution of choice for developers using Microsoft Visual Studio or the .NET Framework....
34
by: nicolasfr | last post by:
Hi, I am a bit disapointed with the current Python online documentation. I have read many messages of people complaining about the documentation, it's lack of examples and the use of complicated...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.