COP 3223 Introduction to C Programming - Section 1

Fall 2011

Prof. Joseph J. LaViola Jr.

ENG2 102 MWF 10:30am - 11:20am


Welcome to COP3223 - Section 1 -- Programming assignment 6 has been posted. It is due on December 2nd 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


   -- Structure as function arguments
   -- Structures and return parameters
Date Lecture Description Readings Assignments
8/22/11

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

CKnights -- Chapter 1 Download Code::Blocks IDE
See the general COP3223 webpage for directions.
8/24/11

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

CKnights -- Chapter 2, pgs. 8-19

8/26/11

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

CKnights -- Chapter 2, pgs. 19-23
Practice Problems 1 (Not for a Grade)
8/29/11

Finish C Fundamentals
   - formating input and output



8/31/11

Expressions
   - arithemtic operators
   - assignment operators

CKnights -- Chapter 2, pgs. 23-31
Practice Problems 2 (Not for a Grade)
9/2/11

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

CKnights -- Chapter 2, pgs. 31-47 Programming Assignment 1 (For a Grade)
9/5/11 Holiday -- No Class!


9/7/11

Selection Statements
   - logical expressions
   - the if statement

CKnights -- Chapter 3, pgs. 50-64

9/9/11

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

CKnights -- Chapter 3, pgs. 64-85

9/12/11

Loops
   - the while statement
   -- the do statement

CKnights -- Chapter 4, pgs. 88-104
Practice Problems 3 (Not for a Grade)
9/14/11

Loops
   - the for statement
   - the break statement

CKnights -- Chapter 4, pgs. 104-116 Programming Assignment 2 (For a Grade)
9/17/10

Loops cont'd
   - the continue statement
   - the null statement
   - more loop examples

CKnights -- Chapter 4, pgs. 116-136
Practice Problems 4 (Not for a grade)
9/19/11

Types
   - integer types
   - floating point types



9/21/11

Types
   - character types
   - type conversion



9/23/11

Types
   - sizeof operator
   - casting



9/26/11

Exam Review



9/28/11

Exam 1



9/30/11

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

CKnights, Chapter 5

10/3/11

Arrays
   - one dimensional arrays

CKnights, Chapter 7, pgs. 159-173
Programming Assignment 3 (For a Grade)
10/5/11

Arrays cont'd
   - multi-dimensional arrays

CKnights, Chapter 7, pgs. 173-177

10/7/11

Arrays cont'd
   - variable lengh arrays

CKnights, Chapter 8

10/10/11

Functions
   - defining and calling functions

CKnights, Chapter 9, pgs. 196-205

10/12/11

Functions cont'd
   - function prototypes
   - function arguments

CKnights, Chapter 9, pgs. 205-220
10/14/11

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

CKnights, Chapter 6

10/17/11

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


Practice Problems 5 (Not for a grade)
10/19/11

Pointers
   - pointer variables
   - address and indirection operators

CKnights, Chapter 10, pgs. 222-230
Programming Assignment 4 (For a Grade)
games-scaffold.c
Sample Output 1
Sample Output 2
10/21/11

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

CKnights, Chapter 10, pgs. 230-239

10/24/11

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



10/26/11

Pointers cont'd
   - pointers arithmetic
   - pointers an arrays



10/28/11

Pointers cont'd
   - pointers arithmetic
   - pointers and multi-dimensional arrays



10/31/11

Exam 2 Review



11/2/11

Exam 2



11/4/11

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

CKnights, Chapter 11, pgs. 242-249

11/7/11

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

CKnights, Chapter 11, pgs. 249-256
11/9/11

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

CKnights, Chapter 11, pgs. 256-261
Programming Assignment 5 (For a Grade)
11/11/11 Verteran's Day -- No Class

11/14/11

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

CKnights, Chapter 12, pgs. 264-275
11/16/11

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

CKnights, Chapter 12, pgs. 275-281

11/18/11

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



11/21/11

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

CKnights, Chapter 13, pgs. 285-291 Programming Assignment 6 (For a Grade)
11/23/11

No Class



11/25/11

Thanksgiving Holday



11/28/11

Advanced Use of Pointers Cont'd
   -- Linked Lists

CKnights, Chapter 13, pgs. 291-300

11/30/11

Advanced Use of Pointers Cont'd
   -- Linked Lists



12/02/11

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