CS245 CS II LABS
C++ STYLE SHEET
The Object Concept
Chapter 5 - Compound Data( Arrays) / BLACKJACK
Exercises - due Jan. 28, 1997
ARRAY I/O
ARRAY PASSING
ARRAY APPLICATION
Allocates an array whose length is specified at run-time
Array of objects example
Declaration for an expanded two-dimensional Point class
Partial implementation of the expanded Point class
Array of Objects
Overloading Functions
Lab 1 - due Jan. 21, 1997
Lab 1 Solution
Chapter 6 - Pointers and References / FONEBOOK
Exercises - due Feb. 4, 1997
Pointers
new and delete functions
Examples showing the use of pointers as function parameters
Uses a char pointer to move through a string character by character
Pass-by-Reference
PASS-BY REFERENCE using REFERENCE PARAMETERS
Dynamic Objects
Objects with Pointers
Objects with links to other objects
Use of the atoi function
Lab 2 - due Jan. 28, 1997
Lab 2 Solution
Chapter 7 - Process I: Organizing and Controlling Classes / ELEVATOR
Exercises - due Feb. 18, 1997
Lab 3 - Due by the end of lab (Feb. 4, 1997)
Lab 3 Solution
Lab 4
Lab 4 Solution
Chapter 8 - Inheritance / PAYROLL
Exercises
Inheritance
Nesting classes
Lab 5
Chapter 9 - Working with Classes / WORDPROCESSOR
Exercises
SIMPLE FILE I/O
SIMPLE FILE I/O
FILE I/O APPLICATION
Demonstrates function overloading
File Streams
Program that illustrates input of multiple word strings
Lab 6
Lab 7
Chapter 10 - Class Actions III: Algorithms / Searching
Exercises
Computes n! using a recursive factorial function
Rolling a Die Simulation
Lab 8
Lab 9
Chapter 11 - Classes in the Abstract ADTs / Lists
Exercises
Linked List of Objects
Lab 10 - Using a List
Lab 11 - Using the List to store data
Lab 11 Solution
Lab 12 - Completing the Linked Implementation of a List
Chapter 11 - Classes in the Abstract ADTs / Stacks
Lab 13 - Using a Stack
Chapter 11 - Classes in the Abstract ADTs / Queues
Other OOPs and C++ sites
Table of contents for FAQ on C++
C++ FAQ LITE
From The Ground Up: A Guide to C++
C and C++ Tutorials & Literature
The Ultimate Developer's Resource Site
C++ LANGUAGE TUTORIAL