By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,505 Members | 1,165 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,505 IT Pros & Developers. It's quick & easy.

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

P: n/a
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

Jul 28 '06 #1
Share this Question
Share on Google+
8 Replies


P: n/a
rupert wrote:
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
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Jul 28 '06 #2

P: n/a

Victor Bazarov wrote:
rupert wrote:
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?
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.

Jul 28 '06 #3

P: n/a
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?

Jul 28 '06 #4

P: n/a
In article <11**********************@p79g2000cwp.googlegroups .com>,
"rupert" <ru****@web-ideas.com.auwrote:
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/>
Jul 28 '06 #5

P: n/a

rupert wrote:
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_ancil...74841_bc01.pdf

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

Jul 28 '06 #6

P: n/a
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.

--

Frederick Gotham
Jul 28 '06 #7

P: n/a

"rupert" <ru****@web-ideas.com.auwrote:
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/ansidocstor...C+14882%2D2003

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
Jul 28 '06 #8

P: n/a
In article <xT*******************@newssvr12.news.prodigy.com> ,
bo*********@no.spam.com says...

[ ... ]
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.

--
Later,
Jerry.

The universe is a figment of its own imagination.
Jul 28 '06 #9

This discussion thread is closed

Replies have been disabled for this discussion.