CSC240::Code::Fall 02018
Introduction to Different Programming Languages

NAMEWEEK#DESCRIPTION
fibonacci.cpp 4 This program prints the first few numbers of the Fibonacci sequence using recursion.
printld.cpp 4 This program prints a number as a string of characters using recursion.
power.cpp 4 This program calcuates n^p (i.e. n raised-to power of p) using recursion.
factorial.cpp 4 This program calcuates a factorial of a number using recursion.
alloc.cpp 4 This program is used to introduce the topic of dynamic memory allocation.
temps.cpp 4 This program uses a four-dimensional array.
cmdline.cpp 4 This program demonstrates command-line arguments and the strcmp() function from the STDC Library.
LotteryTickets.cpp 4 This program uses a two-dimensional array.
BingoCard.cpp 4 This program was used to introduce 2-dimensional arrays.
bingo.cpp 4 This program implements a single-player bingo game.
pointer1.cpp 4 This program is a second introduction to pointers using an array of ints.
pointer0.cpp 4 This program is used to introduce pointers. It uses the address-of and dereference (or indirection) operator.
ArrayEG.cpp 4 This program was used to introduce the use of arrays.
extremelyodd.cpp 4 This program determines in a number is "extremely odd" and "super extremely odd."
scope.c 3 This program helps learn about scope (lifetime and visibility of variables and functions). {scope.cpp}
funcs4.cpp 3 This program demonstrates default arguments.
refparams.cpp 3 This program demonstrates reference variables and reference parameters.
funcs3.cpp 3 This program demonstrates reference variables and reference parameters.
funcs2.cpp 3 This program demonstrates function overloading.
funcs1.cpp 3 Another program that uses functions that in turn take arguments and return values.
funcs0.cpp 3 This program introduces the use of user (i.e. programmer) defined functions.
ForAdder.cpp 2 This program introduces the for repetition control statement using a sentinel-control loop. Note: This code was written during class (fall'09).
DoAdder.cpp 2 This program introduces the do-while repetition control statement using a sentinel-control loop.
Adder.cpp 2 This program introduces the while repetition control statement using a sentinel-control loop.
ifcode.cpp 2 This program uses if statements and else clauses along with the relational and logical operators.
NewAge.cpp 2 A re-write of Age0.cpp that uses an updated Thurman Age-O-Meter.
Age2.cpp 2 A re-write of Age0.cpp that uses the logical operators.
Age1.cpp 2 A re-write of Age0.cpp that shows an alternative style for formatting nested if statements.
Age0.cpp 2 This program provides another example of using if statements and the else clause.
LogicalOps.cpp 2 This program demonstrates the use of the logical operators.
RelationalOps.cpp 2 This program demonstrates the use of relational operators.
Expressions3.cpp 2 A re-write of the Expression2.cpp which contains a bunch of complicated EXPRs used to study precedence and associativity. The EXPRs include the use of relational operators.
Expressions2.cpp 2 This program contains a bunch of EXPRs that are used to examine the precedence and associativity rules followed by the compiler. The EXPRs include the use of relational operators.
Expressions1.cpp 2 A re-write of the Expression0.cpp which contains a bunch of complicated EXPRs used to study precedence and associativity.
Expressions0.cpp 2 This program contains a bunch of EXPRs that are used to examine the precedence and associativity rules followed by the compiler.
ArithOps.cpp 1/2 This program demonstrates the use of arithmetic operators.
Constants.cpp 1/2 This program uses constants and reviews how variables are are defined.
PrimitiveTypes.cpp 1/2 This program demonstrates how to define variables using the primitive data types of the language.
isspace.cpp 1/2 This C++ program uses the isspace() function from the STDC Library to print the whitespace characters contained in the ASCII character set.
Limits.cpp 1/2 This C++ program is used to learn about the amount of memory used by variables and constants.
io.cpp 1/2 This C++ program is used to learn about the preprocessor and the standard I/O streams.
LongStringLiteral.cpp 1/2 This source code demonstrates various techniques that can be used when you need to print (or use) long string literals.
template.txt 1/2 This is a template that can be used to start new C++ program files.
BadHelloWorld.cpp 1/2 A C++ version of the "hello, world" program that is written using poor programming style.
preproc.cpp 1/2 This C++ program is used to help learn about the preprocessor. The program includes preproc0.h and preproc1.h
HelloWorld2.cpp 1/2 A "hello, world" program written in C++ that prints the phrase "hello, world" using the cout, cerr and clog objects.
HelloWorld.cpp 1/2 A "hello, world" program written in C++.
helloworld.c 1/2 A "hello, world" program written in C.


Creator: Gerald Thurman [gthurman@gmail.com]