Lecture overview -- Keyboard shortcut: 'u'  Previous page: Function types -- Keyboard shortcut: 'p'  Next page: Expressions and operators -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Help page about these notes  Alphabetic index  Course home  Lecture 1 - Page 19 : 29
Notes about C++
From C to C++
User defined types

  • Enumeration types

    • A thin layer on top of integers

    • Enumeration constants are not available in the executing program

      • Mapping from integers to symbolic names in switch statements

  • Stucts

    • An aggregate type

    • A value type in C

  • Typedef

    • A type alias facility

    • Good for complicated and convoluted types, such as function types

C++ expands heavily on the user defined types in C