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

NAMEWEEK#DESCRIPTION
guessing-game.lisp 10 An interactive Lisp program that plays a simple guessing game.
cons.cpp 10 This program simulates the Lisp cons function.
string2.cpp 8 This program demonstrates string objects.
stats2.cpp 8 This program and stats3.cpp and stats4.cpp demonstrates the use of C++ struct and class.
bitfields.cpp 8 This program demonstrates bit fields.
mkpasswd.cpp 7 This program demonstrates function pointers.
friend.cpp 7 This program demonstrates a "friend" function.
Dog2.cpp 7 This program demonstrates operator overloading.
Dog.cpp 7 This program demonstrates the use of a class and objects.
Time.cpp 7 This program demonstrates the use of a class and objects.
string.cpp 7 This program uses the C++ string class.
stringio.cpp 7 This program uses the C concept of null terminated array-of-char for strings.
struct0.c 7 This program introduces the struct user defined type found in C (and consequently C++).
grade.cpp 6 This program was written to examine randonly generated passwords.
strfuncs.cpp 6 This program introduces string related functions from the STDC Library.
fibonacci.cpp 6 This program prints the first few numbers of the Fibonacci sequence using recursion.
printld.cpp 6 This program prints a number as a string of characters using recursion.
power.cpp 6 This program calcuates n^p (i.e. n raised-to power of p) using recursion.
factorial.cpp 5 This program calcuates a factorial of a number using recursion.
alloc.cpp 5 This program is used to introduce the topic of dynamic memory allocation.
temps.cpp 5 This program uses a four-dimensional array.
cmdline.cpp 5 This program demonstrates command-line arguments and the strcmp() function from the STDC Library.
LotteryTickets.cpp 5 This program uses a two-dimensional array.
BingoCard.cpp 5 This program was used to introduce 2-dimensional arrays.
bingo.cpp 5 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.
scope.c 4 This program helps learn about scope (lifetime and visibility of variables and functions). {scope.cpp}
funcs4.cpp 4 This program demonstrates default arguments.
refparams.cpp 4 This program demonstrates reference variables and reference parameters.
funcs3.cpp 4 This program demonstrates reference variables and reference parameters.
funcs2.cpp 4 This program demonstrates function overloading.
funcs1.cpp 4 Another program that uses functions that in turn take arguments and return values.
funcs0.cpp 4 This program introduces the use of user (i.e. programmer) defined functions.
ForAdder.cpp 2/3 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/3 This program introduces the do-while repetition control statement using a sentinel-control loop.
Adder.cpp 2/3 This program introduces the while repetition control statement using a sentinel-control loop.
ifcode.cpp 2/3 This program uses if statements and else clauses along with the relational and logical operators.
NewAge.cpp 2/3 A re-write of Age0.cpp that uses an updated Thurman Age-O-Meter.
Age2.cpp 2/3 A re-write of Age0.cpp that uses the logical operators.
Age1.cpp 2/3 A re-write of Age0.cpp that shows an alternative style for formatting nested if statements.
Age0.cpp 2/3 This program provides another example of using if statements and the else clause.
LogicalOps.cpp 2/3 This program demonstrates the use of the logical operators.
RelationalOps.cpp 2/3 This program demonstrates the use of relational operators.
Expressions3.cpp 2/3 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/3 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/3 A re-write of the Expression0.cpp which contains a bunch of complicated EXPRs used to study precedence and associativity.
Expressions0.cpp 2/3 This program contains a bunch of EXPRs that are used to examine the precedence and associativity rules followed by the compiler.
itofi.cpp 2/3 This program converts inches to feet and inches using pointers and reference parameters.
ArithOps.cpp 2 This program demonstrates the use of arithmetic operators.
Constants.cpp 2 This program uses constants and reviews how variables are are defined.
PrimitiveTypes.cpp 2 This program demonstrates how to define variables using the primitive data types of the language.
isspace.cpp 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 2 This C++ program is used to learn about the amount of memory used by variables and constants.
io.cpp 2 This C++ program is used to learn about the preprocessor and the standard I/O streams.
LongStringLiteral.cpp 2 This source code demonstrates various techniques that can be used when you need to print (or use) long string literals.
template.txt 2 This is a template that can be used to start new C++ program files.
BadHelloWorld.cpp 2 A C++ version of the "hello, world" program that is written using poor programming style.
preproc.cpp 2 This C++ program is used to help learn about the preprocessor. The program includes preproc0.h and preproc1.h
HelloWorld2.cpp 1 A "hello, world" program written in C++ that prints the phrase "hello, world" using the cout, cerr and clog objects.
HelloWorld.cpp 1 A "hello, world" program written in C++.
helloworld.c 1 A "hello, world" program written in C.


Creator: Gerald Thurman [gthurman@gmail.com]