C/C++ Programming Lectures for Spring 2014

Lect #

Date

Topics

Overheads

Handouts

01

Jan 14

Ch 1: Intro. To Computers and Programming

AverageOf3Numbers.zip

Questions on computers and programming

02

Jan 16

Ch 2: Intro. To C++


Questions on integer and character representations

03

Jan 21

Ch 3: Arithmetic expressions

lec3.zip

Questions on expressions, type coercion, and formatted output

04

Jan 23

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


Linux activity

05

Jan 28

Ch 4: if statements


Questions on if statements

06

Jan 30

Ch 4: switch statement and scope


Questions on switch statement ans scope

07

Feb 4

Ch 5: while and for loops


Questions on looping

08

Feb 6

Ch 5: looping and file I/O

lec8.zip

Questions on file I./O

09

Feb 11

Ch 5: nested loops

strings.zip

Questions nested loops

10

Feb 13

Ch 6: Intro. To functions

lec10.zip

Questions functions

11

Feb 18

Ch 6: pass-by-reference

Review for Test 1

Test 1 Review Topics

Test 1 Fall 2013

Test 1 Fall 2013 Solution

Sample Test 1

Sample Test 1 Solution

Questions on pass-by-reference


12

Feb 20

Test 1: Chapters 1 - 2



13

Feb 25

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

lec13.zip

Questions on randomInteger function

14

Feb 27

Ch 7: arrays


Questions on arrays

15

Mar 4

Ch 7: parallel arrays and 2D arrays

lec15.zip

Questions on max in array and 2D arrayss

16

Mar 6

More parallel arrays and 2D arrays


More questions on max in array and 2D arrayss

17

Mar 11

Menu-driven Grade-book example


Questions on the Grade-book example

18

Mar 13

Ch 8: Searching and simple sorts


Questions on searching and sorting

Spring Break (March 17 – March 21)

19

Mar 25

Ch 9: Pointer variables


Questions on pointer variables

20

Mar 27

Dyn. Allocated Arrays


Questions on dynamically allocated arrays

21

Apr 1

Review for Test 2

Test 2 Review Topics

Test 2 Fall 2013

Test 2 Fall 2013 Solution

22

Apr 3

Test 2: Chapters 3 - 8

Test 2 Spring 2014

Test 2 Spring 2014 Solution

23

Apr 8

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

testSplitLineByChar.cpp

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

24

Apr 10

C++ classes


Questions on C++ classes

Answers on C++ classes

25

Apr 15




26

Apr 17

More C++ classes


More C++ classes: modified Die class

27

Apr 22

STL data structures and algorithms

lec28.zip

Questions on STL

28

Apr 24

Intro. To Recursion


Questions on recursion

29

Apr 29

Recursive merge sort

mergeSort.cpp

Questions on merge sort

30

May 1

Review for Final Exam

Final Exam Review Topics


Final Exam, Thursday (May 8) 3:00-4:50 PM in ITT 322