CIS 1033 - Fundamentals of Programming

Bob Comer, Professor, CIS/CSC


Example C++ Programs

Chapt

Topics covered

Program

6

Value-returning functions

sqroot.cpp

6

Price calculations with all void functions

price1.cpp

6

Price calculations with void and value-returning functions

price2.cpp

7

Time class w/data members only

time1.cpp

7

Time class w/data and function members

time2.cpp

7

Time class w/private data members

time3.cpp

7

Time class w/constructor functions

time4.cpp

8

Grade difference with full array

grades1.cpp

8

Grade difference with partially full array

grades2.cpp

8

Grade difference with parallel arrays

grades3.cpp

8

Grade difference with class

grades4.cpp

8

Search for student grade by name (C string)

gradesch.cpp

8

Search an integer array

search.cpp

8

Sorting grades

gradesrt.cpp

10

Display a file on the screen

dispfile.cpp


Return to Fundamentals Home Page
Copyright: Ó1999 by the Austin Community College
Department of Computer Studies. All rights reserved.
Comments to: Bob Comer
Last updated: March 7, 1999