Thread: ANSI and ISO Standard C++, library, API, structure, definition

  1. #1
    Registered User
    Join Date
    Mar 2011
    Posts
    254

    ANSI and ISO Standard C++, library, API, structure, definition

    Hi

    Please use simple 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? ANSI is American, and ISO is international.

    2: How would define a library? A set containing same type of functions? e.g math library would contain functions such as sqrt(). The reference to that library is made using the header file.

    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
    I'm an outright beginner. Using Win XP Pro and Code::Blocks. Be nice to me, please.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    1. The languages were first standardised by ANSI, but then later adopted "as is" by ISO (IIRC, it's only the intro blurb and page numbering which differ). The correct reference is to refer to the ISO standard.

    2. How would define a library? A set containing same type of functions?
    Pretty much, yes.

    3. A library provides an interface, and the API tells you how to use it.
    The functions in a math library tend to be self-contained. But a GUI library might have complex rules (say create a window before you can draw on it).
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Function definition in ANSI C
    By thennecy in forum C Programming
    Replies: 1
    Last Post: 05-03-2010, 11:09 AM
  2. ANSI c++ standard document
    By dan20n in forum C++ Programming
    Replies: 6
    Last Post: 02-03-2005, 03:39 AM
  3. ANSI standard function for audio.
    By zahid in forum C Programming
    Replies: 5
    Last Post: 10-09-2002, 11:58 PM
  4. ANSI/ISO Standard
    By itld in forum C++ Programming
    Replies: 3
    Last Post: 03-25-2002, 11:45 PM
  5. is gotoxy a part of ANSI C 89 standard
    By kendals in forum C Programming
    Replies: 1
    Last Post: 03-20-2002, 07:43 PM