Lecture Notes for Introduction to Computer Science II

31 May 2001 - Structs and Functions


  1. operations on structs

    1. not only model objects, but change them too

  2. putting functions in structs

    1. just like regular function definitions

    2. accessing structure fields

  3. special member functions

    1. constructors

    2. different declaration - no return type

    3. different way of calling

      1. semi-automatic calls - in declarations

      2. calling syntax is a bit odd too


This page last modified on 6 June 2001.