COMP-322
Introduction to C++ -- Lectures
Winter 2012

Lectures

Lecture slides and related source code will be posted here.

Lectures

Date Topic(s)
2011-01-12 Introduction
  • (lecture)
  • For help installing G++ on Windows see the following link: http://www.cmc.edu/pages/faculty/alee/g++/g++.html. If you have a Mac or linux g++ is most likely already installed. Note that the version linked is a slightly older version of c++. However, I believe for the purpose of this course it should be sufficient (and the instructions are pretty good). You can also follow the instructions from the link except use the exe from the following link if you prefer: Cygwin
  • hello.cpp
  • A good idea would be to get g++ installed and hello world working. We'll quickly go through the slides we did not get to at the beginning of next class so finishing the lecture 1 slides would be useful in case you have questions.
  • After installing g++, you can compile the above by typing (from a command prompt) g++ -o hello hello.cpp Do not type g++ -o hello.cpp hello.cpp as I mistakedly did and had to rewrite the program :)
2011-01-16 Basics of C++
2011-01-23 Pointers and References
2011-01-30 Memory Management
2011-02-06 Standard Library basics
2011-02-13 Quiz 1
2011-02-27 Object oriented basics , defining classes
2011-03-05 Review of object oriented programming basics, inheritance/polymorphism
2011-03-12 More on polymorphism and inheritance
2011-03-19 Overloading operators and Exceptions
2011-03-26 Defining our own iterators and templates.