CPSC 241 Computer Science IV
(Data Structures and Algorithms)

Fall 1998
TTh 12:30--1:45 Daniel 408
Syllabus

Chp2: Objects and Classes

Sample programs

oarr1.cpp
(IntArray class: overloaded constructors with copy constructor, destructors, member functions, and private member data)

oarr2.cpp
(IntArray class: simpler logic for constructors, protected member functions)

oarr3.cpp
(IntArray class: operators, `this' pointer)

oarr4.cpp
(IntArray class: ostream friends)

oarr5.cpp
(IntArray class: inline member functions)

Assignment 2

oarrhwsln.cpp
(solution)

oarrhwsln2.cpp
(solution, dynamic creation of IntArray object)

oarr9.cpp
(solution, + operator)