Solved

C++ standard APIs

Posted on 2003-12-08
3
315 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

743 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

15 Experts available now in Live!

Get 1:1 Help Now