ANSI C++, ISO C++, library, API, structure

Please use simplistic explanations so that I could fully appreciate your help. Thanks.

1: I have been told that the standard for C++ is set up by ANSI.But I have also read somewhere that there is also ISO standard for C++. What is it?

2: How would define a library? A set containing same type of function? e.g math library would contain functions such as sqrt().

3: API: I have tried several sources but couldn't get any general understanding of this. Do you have some simple explanation for a beginner like me?

4: int, float, char are different data types. What is a definition, and a structure?

Please help me with the above queries. Thanks.

Best wishes
Jackson
1. ANSI = national http://en.wikipedia.org/wiki/American_National_Standards_Institute
ISO = international http://en.wikipedia.org/wiki/International_Organization_for_Standardization

2. Yes. A set of functions/classes. It's compiler dependend. You need the header files in oder to access them. http://en.wikipedia.org/wiki/Library_%28computing%29

3. API is like a library http://en.wikipedia.org/wiki/Application_programming_interface

4. A definition (as oposed to a declaration) is when you write how something can be accessed. A structure http://en.wikipedia.org/wiki/Struct_%28C_programming_language%29 is such a definition. A prototype such as void func(int a); is a definition as well

1
2
3
struct X { int a; } // A definition
...
X x; // Now you declare the variable x from X 
Topic archived. No new replies allowed.