C/C++ Programming Lectures for Fall 2013

Lect #

Date

Topics

Overheads

Handouts

01

Aug 27

Ch 1: Intro. To Computers and Programming

AverageOf3Numbers.zip

Questions on computers and programming

02

Aug 29

Ch 2: Intro. To C++


Questions on integer and character representations

03

Sep 3

Ch 3: Arithmetic expressions

lec3.zip

Questions on expressions, type coercion, and formatted output

04

Sep 5

Continue Ch 3 and Log-on to student.cs.uni.edu


Linux activity

05

Sep 10

Ch 4: if statements


Questions on if statements

06

Sep 12

Ch 4: switch statement and scope


Questions on switch statement ans scope

07

Sep 17

Ch 5: while and for loops


Questions on looping

08

Sep 19

Ch 5: looping and file I/O


Questions on file I./O

09

Sep 24

Ch 5: nested loops

strings.zip

Questions nested loops

10

Sep 26

Ch 6: Intro. To functions

lec10.zip

Questions functions

11

Oct 1

Ch 6: pass-by-reference

Review for Test 1

Test 1 Review Topics

Sample Test 1

Sample Test 1 Solution

Questions on pass-by-reference


12

Oct 3

Test 1: Chapters 1 - 2

Test 1 Solution


13

Oct 8

Ch 6: static variables, default parameters, overloading, and driver programs

lec13.zip

Questions on randomInteger function

14

Oct 10

Ch 7: arrays


Questions on arrays

15

Oct 15

Ch 7: parallel arrays and 2D arrays

lec15.zip

Questions on max in array and 2D arrayss

16

Oct 17

More parallel arrays and 2D arrays


More questions on max in array and 2D arrayss

17

Oct 22

Menu-driven Grade-book example


Questions on the Grade-book example

18

Oct 24

Ch 8: Searching and simple sorts


Questions on searching and sorting

19

Oct 29

Ch 9: Pointer variables


Questions on pointer variables

20

Oct 31

Dyn. Allocated Arrays


Questions on dynamically allocated arrays

21

Nov 5

Review for Test 2

Test 2 Review Topics


22

Nov 7

Test 2: Chapters 3 - 8

Test 2 Solution


23

Nov 12

C++ strings, struct, enum, and C++ classes

testSplitLineByChar.cpp

Questions on C++ strings, struct, enum, and C++ classes

24

Nov 14

C++ classes


Questions on C++ classes

Answers on C++ classes

25

Nov 19




26

Nov 21

More C++ classes


More C++ classes: modified Die class

Thanksgiving Break (Nov 25 – Nov 29)

27

Dec 3

STL data structures and algorithms

lec28.zip

Questions on STL

28

Dec 5

Intro. To Recursion


Questions on recursion

29

Dec 10

Recursive merge sort

mergeSort.cpp

Questions on merge sort

30

Dec 12

Review for Final Exam

Final Exam Review Topics


Final Exam, Wednesday (Dec 18) 1:00-2:50 PM in ITT 328