CS 112 Programming Languages and Paradigms
1st Semester, 2006-2007
John Paul Vergara, PhD
Syllabus
Announcements
presentation material
report schedule
Haskell Sample Handson Exam
Haskell Exercises
Sample LISP Handson
Lisp Exercises
Dev CPP project
demonstrating modules in C.
Sample
handson exam
,
solution
.
Some sample programs on parameter passing in C (try them on different compilers):
order of evaluation
,
variable number of arguments
,
local variable storage in the runtime stack
.
Welcome to this webpage! Consult this page regularly for updates and material
Slides
Introduction
The C Programming Language
Imperative Programming
Activation Records
Activation Records in Java (Updated!)
Variable Arguments
Object-Oriented Programming
The C++ Language (Updated!)
Sample C++ Code
Code that demonstrates
C++ Constructors
,
Java Packages
, and
C++ Namespaces
Introduction to Lisp
GNU Common Lisp (zipped)
1-page Quick-Reference by Marty Hall
Tutorial by Pierce and Chapiro
Sample lisp code
Functional Programming
Haskell Programming
Haskell Tutorial
from haskell.org
A hugs (haskell interpreter) installer (windows)
from this
download site
Sample haskell code
Projects
Project 1: C (Due
July 24
July 26)
Sample files:
Windows text format
|
Unix text format
Clarification 1: clipping should be supported; i.e., overlaying of patches onto a frame that may exceed frame boundaries; in this case update the relevant portion only.
Project 2: C++ (Due October 4)
;
test program
|
output