Solved

C++ standard APIs

Posted on 2003-12-08
3
319 Views
Last Modified: 2013-12-14
Hi there,

     I used to program in Java. But now I am working on a legacy C++ code base. I'm not very familiar with C++ and it takes me a long time to understand the code. Especially, there are a lot of functions I don't know where to find their synopses; in Java, I can go to Sun's website to look for the corresponding API. Can anybody tell me is there is some place that  has complete collection of the C++ APIs descriptions? Many thanks.

Soccer
0
Comment
Question by:summer_soccer
  • 2
3 Comments
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 9899935
If you program in Visual Studio (and have the MSDN library intalled), you can place the cursor over a keyword or a function name and hit the F1 key. This will bring up the help for the selected term.

If you are using any other IDE, there may be a similar feature available.

If this still leaves you in the dark, try http://www.cplusplus.com/.

Unfortunately C++ is not platform independant like Java, so every implementation has different libraries.
0
 
LVL 14

Accepted Solution

by:
Tommy Braas earned 20 total points
ID: 9901022
I would like to clarify khkremer's comments above.

C++ and the standard C++ API (including the Standard Template Library) IS platform independent as far as the language goes. The compiled object files will not be platform independent. Also, using any platform APIs (e.g. WIN32 or Carbon), will render the code platform dependent.

I great book for learning C++ is "C++ Primer" by Stanley Lippman, it also doubles as a reference. The Standard Template Library (STL) is covered in "STL Tutorial and Reference Guide", published by Addison-Wesley.

Good luck!
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 9901157
orangehead911 is correct, I should have said "C++ environments are not platform independent". The reality however is that it's very unlikely that one C++ program that is more than just a toy application will compile on a different platform without any changes.
As soon as user interface libraries are involved, this is definitely the case.
If you are working in a Unix environment, you can use the "man" command to get information about most library functions and system calls:
"man sprintf" will display the man page for all printf type commands (printf, fprintf, sprintf, snprintf, vprintf, vfprintf, vsprintf, vsnprintf)
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now