htalogo2.gif

Structured C Coding Workshop - Topical Outline

Introduction

Computer Exercise: Course Set up

A C Program

C language elements

C data types and constants

Describing elementary data items: int, float, double, and decimal

Character data items: char

Strings, pointers, and character arrays

Detecting and Reporting Errors

Computer Exercise: A First C Program

C operators

Assignment statement

Expressions

Comparisons

Computer Exercise: Data Definition and Operators

Arrays

Structures

Unions

Computer Exercise: Definining Input and Output Structures

Files

Text streams and Binary streams

Record files

Defining files

Processing sequential files

fopen, fread, fwrite, and fclose functions

Looping through a file

Computer Exercise: Working With Files

Numeric Formatting

sprintf, fprintf, and printf

Format Strings

Format Specifications

Setting the Locale

Computer Exercise: A Report With Fields

Logical expressions

if statements

Conditional processing

while loops

for loops

do ... while loops

Numeric conversion for input

Computer Exercise: A More Complex Report

Debugging

The C pre-processor

Computer Exercise: Using the pre-processor

Report considerations

Date fields

Pseudocode: Report with page breaks

Computer Exercise: Page Break Report

Program modularization - functions and subroutines

Function prototypes

Exiting functions

Storage classes and scope

Computer Exercise: Functions and Program Modularization

switch statement

Enumerated data

Introduction to stream I/O: printf and scanf

Computer Exercise: Stream I/O and More Functions

Arrays

Mulit-dimensional arrays

Initializing arrays

Pointers and arrays

Computer Exercise: Using Arrays and Subscripts

The C/C++ Compiler

Inputs and Outputs

Compile Time Parameters

Compiler Listing Contents

Binder Listing Contents

Execution Time Parameters

Computer Exercise: The C/C++ Compiler

Miscellaneous topics

Typedef

Other preprocessor facilities

Pointer access to structures

Dynamic memory usage

Dynamic calls

LE Debugging services

CEE3DMP

CEE3ABD

Header files

Library functions

Optional Computer Exercise: Advanced Features

 

These Materials © Copyright 2013 by Hunter Cobb

Materials version: V4.x

 

Course Objectives
Course Description
C/C++ curriculum
Home page