Examples
C++ Syntax
#Include Guards
-- use in preventing errors due to multiple #includes of the same class
Constructors and Assignment
-- parallels between classes and primitive types
Using Pointers
-- syntax for declaration, initialization, referencing (
&
) and dereferencing (
*, ->
)
Scope Operator
-- use in disambiguating free functions and class member functions
Template Syntax
-- template functions and classes
Static Class Members
-- use of keyword "static" with class variables and functions
Output Formatting
Project 2 Sample Output
-- labels, units, simple columns, space between sections
Advanced Output Formatting
(
Source Code
) -- floating point formatting, decimal precision, field alignment, column formatting
Testing Modules
Project 4 Sample Output
-- test cases, error checking, comparison against known values, labels, columns
Lab 9 Modified Driver
-- demonstrating class member functions
See Also
CSE 232 Course Pack Examples
Last updated 4/14/13