Lecture Notes for Introduction to Computer Science II
31 May 2001 - Structs and Functions
- operations on structs
- not only model objects, but change them too
- putting functions in structs
- just like regular function definitions
- accessing structure fields
- special member functions
- constructors
- different declaration - no return type
- different way of calling
- semi-automatic calls - in declarations
- calling syntax is a bit odd too
This page last modified on 6 June 2001.