This page will be filled out with links to slides, example code, and
other useful information as the semester progresses.
The easiest way to get the example .c and .cpp files onto your
eniac account is to use wget.
Simply type wget "URL" (with the
quotation marks around the URL) to download the file located at the URL
to your current directory. For example: wget
"http://www.cis.upenn.edu/~cis190/fall2014/lectures/01/hello_world.c"
will download hello_world.c to the directory from which the command is run.
Lectures
- Week 1, Aug 27: Introduction and Getting Started
- Week 2, Sep 3: Not So Basics
- Week 3, Sep 10: Memory Management in C
- lec03.pdf: Lecture Notes
- Live Coding Files:
- sample.c:
Code used in demonstration of ddd debugger in class
- Week 4, Sep 17: Assorted Topics (and More on Pointers)
- Week 5, Sep 24: Linked Lists
- lec05.pdf: Lecture Notes
- linkedList.c:
function definitions for a basic linked list implementation
- linkedList.h:
function prototypes for a basic linked list implementation
- llExample.c:
example of a main() using the basic linked list implementation
- Week 6, Oct 1: Introduction to C++
- Week 7, Oct 8: C++ Streams
- Week 8, Oct 15: Classes in C++
- lec08.pdf: Lecture Notes
- Live Coding Files:
- Makefile:
Makefile for compiling Rectangle class and example main()
-
rectangle.h: Completed Rectangle class declaration
-
rectangle.cpp: Completed Rectangle class definitions
-
exRect.cpp: Completed use of Rectangle class in main()
- Week 9, Oct 22: Vectors, Enumeration, Overloading, and More!
- Week 10, Oct 29: Inheritance
- Week 11, Nov 5: Polymorphism
- Week 12, Nov 12: Bits and Pieces of C++
- lec12.pdf: Lecture Notes
- namespace.cpp:
a simple example of using two separate namespaces
- references.cpp:
examples of using pass by value, by reference, and a reference
using values, pointers, and references
- Week 13, Nov 19: Templates
- lec13.pdf: Lecture Notes
- exTemplates.cpp:
declarations and definitions for templated functions and classes
- templates.h:
example of a main() using the templated functions and classes
- Week 14, Dec 2 and 3: Student Project Presentations