Pacific University
 
Shereen Khoja Home
Research Interests
CS120
CS250
CS492
Spring Schedule
 
Office Hours
MW 10:00-11:30am
W 1:00-2.00pm
or by appointment
 
Contact Info
shereen@pacificu.edu
(503) 352-2008
Strain 203C

 

Address:
UC689
2043 College Way
Forest Grove
OR 97116

Map it

Shereen Khoja

Course Content

Week

Topics

Chapters
Assignments
Slides
WEEK 1
1/29-2/2

Pointers and Strings

  • Getting the address of a variable
  • Pointer Variables
  • Pointers as funcion parameters

Chapter 10 - Sections 10.1, 10.2, 10.7

 

01Review

02Pointers

WEEK 2
2/5-2/9
  • Relationship between arrays and pointers
  • Pointer arithmetic
  • C-Strings
  • Constant pointers
  • Arrays of pointers
  • Dynamic Memory Allocation
  • Paired programming in class

Section 10.3, 10.4, 12.1

Section 10.8, 10.12

01Palindrome checker

03Pointers

04Pointers

Donations Example Code (Not Complete)

Donations Example Solution

WEEK 3
2/12-2/16

Structures

  • Declaring structures
  • Declaring structure variables
  • Storing values in structure variables
  • Initializing structures using initializer lists and constructors
  • Passing structure variables into functions

Introduction to classes

Section 7.1, 7.2, 7.3, 7.5, 7.10, 7.11, 7.12
01Palindrome assignment due on Friday, 2/16, 2007

05Pointers

06Classes

WEEK 4
2/19-2/23

Classes:

  • Separating classes into files
  • Constructors
  • Overloading constructors
  • Default constructors
  • Default arguments
  • Get and Set functions
  • Destructors
Section 7.13, 7.14, 7.15 02TicTacToe - OUT (Monday)

07Classes

08 Classes

WEEK 5
2/26-3/2

Memberwise assignment

Constant arguments

Wednesday: Exam 1

Constant functions

Static data members and functions

this pointer

 

02Assignment - IN (Friday)

03Assignment: 03LargeInteger - OUT (Friday)

LargeInteger .h file

LargeInteger driver

LargeInteger driver output

09 Classes

10 Classes

WEEK 6
3/5-3/9

Friends

Copy Constructors

Operator Overloading

   

11 Advanced Classes

12 Operator Overloading

WEEK 7
3/12-3/16

Overloading the assignment operator

Inheritance

There is something wrong with this program. Can you spot what that is?

 

03Assignment-IN W

04Assignemnt-OUT W: 04 LargeInteger Version II

New LargeInteger Driver

13 Operator Overloading

14 Inheritance

WEEK 8
3/19-3/23

Wednesday: Exam 2

Inheritance

Protected

  04Assignment-IN F 15 Inheritance
WEEK
3/26-3/30

SPRING BREAK

 

 

 

 
WEEK 9
4/2-4/6
    05Assignment-Out M: 05 Tic-Tac-Toe Revisited 16 Polymorphism and Virtual Functions
WEEK 10
4/9-4/13

Abstract classes

Pure virtual functions

 

05Assignment-IN F

06Assignment-OUT F

17 Abstract Classes
WEEK 11
4/16-4/20

Function Templates

Class Templates

   

18 Function Templates

19 Class Templates

WEEK 12
4/23-4/27

No Class on Wednesday because of senior projects day

Friday: Exam 3

 

06Assignment-IN W

07Assignement-OUT W

 
WEEK 13
4/30-5/4

Code Reviews

Exceptions

    20 Exceptions
WEEK 14
5/7-5/11
Wednesay, May 9 is the last day of class   07Assignment-IN W