COP 3223 Introduction to C Programming - Section 1

Fall 2010

Prof. Joseph J. LaViola Jr.

BA 119 MWF 10:30am - 11:20am


Welcome to COP3223 - Section 1 - Program 6 has been posted. It is due December 3rd by 11:59pm. This assignment is for a grade.


General COP 3223 Information

Section 1 Syllabus and Info

C Quick Reference Sheet

Lecture Notes and Example Programs courtesy of Arup Guha


Date Lecture Description Readings Assignments
8/23/10

Introduction
   -course mechanics
   -history of C
   -strengths/weaknesses of C

CKnights -- Section 1
8/25/10

C Fundamentals
   -writing a simple program
   -comments
   -variables and assignment

CKnights, Section 2, pgs. 8-32
8/27/10

C Fundamentals Cont'd
   -reading input
   -constants and identifiers
   -layout of a C program

CKnights, Section 2, pgs. 32-49 CKnights, pg. 29, Problem 3
8/30/10

Finish C Fundamentals
   - formating input and output



9/1/10

Expressions
   - arithemtic operators
   - assignment operators

CKnights, Section 2, pgs. 32-46,
GuhaDraft, Chapter 2
Programing Assignment 1 (For a Grade)
9/3/10

Expressions Cont'd
   - increment/decrement operators
   - expression statements/evaluation

CKnights, Section 3 CKnights, pg. 45, Problem 3
9/8/10

Selection Statements
   - logical expressions
   - the if statement

CKnights, Section 4 Programming Assignment 1 is due tonight
9/10/10

Selection Statements cont'd
   - condtional expressions
   - the switch statement

CKnights, Section 5,
GuhaDraft, Chapter 3
CKnights, pg. 75, Problem 2
pg. 79, Problems 1,2
9/13/10 Finish switch statement

Loops
   - the while statement

CKnights, Section 6, pgs. 100-112
Programming Assignment 2 (For a Grade)
9/15/10

Loops
   - the do statement
   - the for statement

CKnights, Section 6, pgs. 112-121, 140-144
9/17/10

Loops cont'd
   - exiting from a loop
   - the null statement

CKnights, Section 6, pgs. 121-140
GuhaDraft, Chapter 4
CKnights, Section 6, pg. 105, Problem 1,2
pg. 111, Problem 1, pg. 121, Problem 7
pg. 139, Problem 1
9/20/10

Types
   - integer types



9/22/10

Types
   - floating types
   - character types



9/24/10

Types
   - type conversion
   - casting
   - typedef and sizeof



9/27/10

Exam Review



9/29/10

Exam 1



10/1/10

File I/O
   -fopen, fclose
   -fprintf,fscanf

CKnights, Section 7

10/4/10

Arrays
   - one dimensional arrays

CKnights, Section 9, pgs. 172-184
Programming Assignment 3 (For a Grade)
10/6/10

Arrays cont'd
   - multi-dimensional arrays

CKnights, Section 10

10/8/10

Arrays cont'd
   - variable length arrays

CKnights, Section 11

10/11/10

Functions
   - defining and calling functions

CKnights, Section 12, pgs. 241-262

10/13/10

Functions cont'd
   - function prototypes
   - function arguments

Cknights, Section 9, pgs. 184-205, Section 12, pgs 263-284
10/15/10

Functions cont'd
   - function agruments
   - function termination

GuhaDraft, Chapter 9
CKnights, pg. 200, Programming problems 3,4
pg. 211, Programming problem 1
10/18/10

Functions -- Recursion
Program Organization
   - local/external variables
   - scope


Programming Assignment 4 (For a grade)
Sample input file
Sample output
10/20/10

Program Organization cont'd
   - blocks
   - organizing a C program

CKnights, Section 13
10/22/10

Pointers
   - pointer variables
   - address and indirection operators

GuhaDraft, Chapter 10

10/25/10

Pointers cont'd
   - pointer assignment
   - pointers as arguments

CKnights, Section 12, pgs. 285-294 Cknights, pg. 313, Problem 2
pg. 320, Problem 2
10/27/10

Pointers cont'd
   - pointers as arguments
   - pointers as return values



10/29/10

Pointers cont'd
   - pointers arithmetic
   - pointers an arrays



11/1/10

Exam 2 Review



11/3/10

Exam 2



11/5/10

Strings
   -- string literals
   -- string variables
   -- reading and writing strings

CKnights, Section 14, pgs. 349-359

11/8/10

Strings cont'd
   -- accessing chars in strings
   -- C string library

CKnights, Section 14, pgs. 359-377 Programming Assignment 5 (For a Grade)
11/10/10

Strings cont'd
   -- string idioms
   -- arrays of strings

CKnights, Section 14, pgs 377-411
GuhaDraft, Chapter 11

11/12/10

Structures, Unions, and Enumeration
   -- Structure variables
   -- Structure types

CKnights, Section 15, pgs. 416-422
11/15/10

Structures, Unions, and Enumeration
   -- Structure as function arguments
   -- Structures and return parameters

CKnights, Section 15, pgs. 422-431
11/17/10

Structures, Unions, and Enumerations cont'd
   -- Structures and arrays
   -- Unions
   -- enumerated types

CKnights, Section 15, pgs. 431-440
GuhaDraft, Chapter 12
CKnights, pgs. 422, Problem 3, pg. 440, Problem 1
11/19/10

Advanced Use of Pointers
   -- Dynamic memory allocation
   -- Dynamic allocation of strings and arrays



11/22/10

Advanced Use of Pointers Cont'd
   -- Deallocating storage
   -- Linked Lists

GuhaDraft, Chapter 13 Programming Assignment 6 (For a grade)
Sample input file
Sample output file
11/24/10

No Class



11/26/10

Thanksgiving Holday



11/29/10

Advanced Use of Pointers Cont'd
   -- Linked Lists



12/01/10

Advanced Use of Pointers Cont'd
   -- Linked Lists



12/03/10

Advanced Use of Pointers Cont'd
   -- Pointers to Pointers
   -- Pointers to Functions



12/06/10

Exam Review