java programmer does c++ have an "API" like library list of std functions?

R

rupert

It seems a need a paradime shift in understanding how C++ use
libraries. Sun keeps is together under their API. And Javadoc enables a
neat way of displaying functions of a local program to display like an
API. does C++ have an easy to use an API for standard functions
anywhere? and Is their a Javadoc implementation of sorts?

Nubee from java
 
V

Victor Bazarov

rupert said:
It seems a need a paradime shift in understanding how C++ use
libraries. Sun keeps is together under their API.

C++ has its International Standard.
And Javadoc enables
a neat way of displaying functions of a local program to display like
an API.
Huh?

does C++ have an easy to use an API for standard functions
anywhere?

I guess I don't understand the question. Standard functions *are* API.
What would be "an API for standard functions"?

Are you looking for something like Microsoft's Intellisense? Use their
IDE, you will get it. C++ is a *language*, it is not (and it does not
include or define) a *development environment*. Development environments
are products and there are many successful ones on the market.
and Is their a Javadoc implementation of sorts?

What's Javadoc?

V
 
S

shadowman615

Victor said:
C++ has its International Standard.


I guess I don't understand the question. Standard functions *are* API.
What would be "an API for standard functions"?

Are you looking for something like Microsoft's Intellisense? Use their
IDE, you will get it. C++ is a *language*, it is not (and it does not
include or define) a *development environment*. Development environments
are products and there are many successful ones on the market.


What's Javadoc?
I think he's looking for an on-line source of "official" documentation
for the c++ standard library functions. Since Java is Sun's
proprietary language, there is a centralized location available to
access this sort of thing in Java.
 
R

rupert

I think he's looking for an on-line source of "official" documentation
for the c++ standard library functions. Since Java is Sun's
proprietary language, there is a centralized location available to
access this sort of thing in Java.

yeah, that's what I meant shadowman. I just want to read up on what's
available, and know enough about it at a glance to use it. eg:
"a list of std io commands to read off a line ... okay this list has
'cin' ... what does it do ... oh yeah it reads in ... this should be it
....yay, it works"

I often use
http://java.sun.com/j2se/1.5.0/docs/api/
to program. does c++ have anything like this?
 
D

Daniel T.

"rupert said:
It seems a need a paradime shift in understanding how C++ use
libraries. Sun keeps is together under their API. And Javadoc enables a
neat way of displaying functions of a local program to display like an
API. does C++ have an easy to use an API for standard functions
anywhere? and Is their a Javadoc implementation of sorts?

Nubee from java

Try <http://www.dinkumware.com/manuals/>
 
T

tragomaskhalos

rupert said:
It seems a need a paradime shift in understanding how C++ use
libraries. Sun keeps is together under their API. And Javadoc enables a
neat way of displaying functions of a local program to display like an
API. does C++ have an easy to use an API for standard functions
anywhere? and Is their a Javadoc implementation of sorts?

Nubee from java

In general there are Javadoc-style tools for C++ but they are not used
as consistently as Javadoc is.

C++ has a standard library, but the quality and presentation of its
documentation will depend on the provider;a library implementation
should come with your compiler, but there are also third party
implementations available. A paradigm shift indeed - there is no
equivalent of the god-like Sun handing down the one true implementation
as there is in the Java world.

You also need to be aware of the difference between the "standard
library" and the "STL" (standard template library).

Here are some other links to get you started:
http://www.sgi.com/tech/stl/
http://media.wiley.com/product_ancillary/41/07645748/DOWNLOAD/574841_bc01.pdf

And finally, as a Java refugee, welcome to the premier league mate ;-)
 
F

Frederick Gotham

rupert posted:
does C++ have an easy to use an API for standard functions
anywhere?


I use the C++ Standard from time to time. Here's a quick excerpt:

25.3.9

template<class BidirectionalIterator>
bool next_permutation(BidirectionalIterator first,
BidirectionalIterator last);

template<class BidirectionalIterator, class Compare>
bool next_permutation(BidirectionalIterator first,
BidirectionalIterator last,
Compare comp);

Effects: Takes a sequence defined by the range [first, last) and transforms
it into the next permutation. The next permutation is found by assuming
that the set of all permutations is lexicographically sorted with respect
to operator< or "comp". If such a permutation exists, it returns true.
Otherwise, it transforms the sequence into the smallest permutation, that
is, the ascendingly sorted one, and returns false.

Complexity: At most (last - first)/2 swaps.


A lot of people like dinkumware, as mentioned elsethread.
 
R

Robbie Hatley

rupert said:
It seems a need a paradime shift in understanding how C++ use
libraries. Sun keeps is together under their API. And Javadoc enables a
neat way of displaying functions of a local program to display like an
API. does C++ have an easy to use an API for standard functions
anywhere? and Is their a Javadoc implementation of sorts?

Since Java is proprietary, they can perhaps give the documentation
away for free. Since C++ is not owned by any company, the language
documentation, ironically, tends to cost money (though some good
free documentation is available).

Here's the FAQ for this newsgroup, which is loaded with information on C++,
and it's free:

http://www.parashift.com/c++-faq-lite/

Here's the Ultimate Document for C++: the Standard; it's not free,
but a PDF copy is cheap at only $30 (you can get hardcopy if you
want, but that's $300, which is perhaps understandable if you
realize that this is a 758-page document):

http://webstore.ansi.org/ansidocstore/product.asp?sku=INCITS/ISO/IEC+14882-2003

For a tutorial and reference on the standard library, read the book
"The C++ Standard Library" by Nicolai Josuttis, Addison-Wesley,
ISBN 0-201-37926-0, available used from $35 through Amazon.com (or
read it for free at a library).

--
Cheers,
Robbie Hatley
Tustin, CA, USA
lone wolf intj at pac bell dot net
(put "[usenet]" in subject to bypass spam filter)
home dot pac bell dot net slant earnur slant
 
J

Jerry Coffin

[ ... ]
Here's the Ultimate Document for C++: the Standard; it's not free,
but a PDF copy is cheap at only $30 (you can get hardcopy if you
want, but that's $300,

You can also get a printed copy in the form of ISBN 0470846747 for
around $75-80 (US). You only pay the $300 if you buy it directly from
ANSI.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,040
Latest member
papereejit

Latest Threads

Top