Administrivia

  • Syllabus
  • Some C Info (compiling, submitting, etc.)
  • Using Pico
  • Basic Unix Commands
  • Unix Tutorial
  • SSH <-- Download to access osprey
  • More SSH and Secure File Transfer Programs Has link to basic instructions on how to use SSH program
  • Videos and Local Info on C, Linux, Osprey, Lab/tutor schedule
  • Turnin procedure
  • Tutor Hours in 3rd floor lab: MW 11-3:30; TTh 4-6:30; F 12-4.
  • First Day of Class Thurs Jan 8, 2015

    Basic C Info

  • Tutorial
  • Wiki C Textbook

    Reading Assignments

  • Read corresponding section of text as we discuss it in class.

    Programming Assignments (all are tentative until Code is assigned). Assignment Code to be used with turnin is listed below for each assignment. Programs due 11:59pm of due date.

  • Assignment 0 Code: wfkprog0 Due Date: 1/16
  • Assignment 1 Code: wfkprog1 Due Date: 1/22
  • Assignment 2 Code: wfkprog2 Due Date: 1/29
  • Assignment 3 Code: wfkprog3 Due Date: 2/10
  • Assignment 3a Code: wfkprog3a Due Date: 2/26
  • Assignment 4 Code: wfkprog4 Due Date: 3/5
  • Assignment 5 Code: wfkprog5 Due Date: 3/12
  • Assignment 6 Code: wfkprog6 Due Date: 3/26 [This assignment is optional]
  • Assignment 7 Code: wfkprog7 Due Date: 4/7
  • Assignment 8 Code: wfkprog8 Due Date: 4/21
  • Assignment 9 Code: wfkprog9 Due Date: optional
  • Assignment X Code: Due Date: optional
  • Note: Programs you submit via turnin should be named prog?.c, where ? is the appropriate value 0-9 (or X). Submit hard-copy to instructor also.

    Exams:

  • Exam 1 2/12
  • Exam 2 3/12
  • Final exam during scheduled exam period.

    PPT

    Sample Programs

  • Sum program
  • Product program
  • Sizeof data types
  • Printf example
  • Arithmetic Operators
  • Simple Precedence
  • Simple Implicit Type Conversion
  • Type conversion
  • More casting
  • Math functions in C
  • Functions in C
  • Global Variable
  • More Simple Functions in C (more global variables)
  • Same Previous, but with 2 returns
  • Call by reference Note error on p. 181 of book
  • Statics and globals
  • Mysterious Scope Nonsense
  • Simple if
  • If statements
  • If statements Does this do same as the previous one?
  • More ifs
  • More ifs pt 2
  • Switch statement
  • More switch
  • For loops
  • Trial Division
  • Strange for loop
  • Loops
  • Nested Loops
  • First recursive program
  • Simple recursion
  • GCD program
  • Simple Arrays
  • Finding smallest value
  • Arrays and Functions
  • Declaring Array in function
  • Variable Length Arrays
  • Bubble Sorts
  • Tricky Arrays and Functions
  • 2-d arrays
  • Searching
  • Recursive Binary Search
  • Silly strings program
  • More strings
  • Structs
  • Arrays of Structs
  • Passing Structs

    Misc.

  • argc and argv (how to do command line input in C)
  • Text File I/O
  • File I/O
  • Simple integer file input
  • Ways to deal with scanf odd behavior