Analyzing Member Functions

Steven J. Zeil

Old Dominion University, Dept. of Computer Science

Table of Contents

1. The Formal Parameters of a Member Function
2. Example: string::find
2.1. The if Statement
2.2. The if Statement (cont.)
2.3. The if Statement (completed)
2.4. Loop Body
2.5. Loop Repetitions
2.6. Loop Total
2.7. main Statement Sequence

Our examples of worst case analysis so far have focused on standalone functions. Now, we consider member functions for classes.


In the Forum:

(no threads at this time)