CISP 232 C++ Programming II

Welcome to the CISP 232 C++ Programming II Course Weblog. This site will serve as a repository for course information, including course slides, assignments and resources.

Please send me an email (nicole.ryan@davenport.edu) if you have any suggestions regarding the weblog.

Linked Lists

This week we will explore the exciting world of linked lists.

We will learn:
  • The basic properties of nodes
  • How to build a linked list
  • How to add items [nodes] to a linked list
  • How to delete items from a linked list
  • And how to copy a linked list

Recursion

This week we will learn about recursion. Recursion is a method of solving a problem by reducing it into smaller versions of itself.

And there are people who find this stuff funny. Remember those annoying riddles from childhood like Pete and Repeat... well there's even more recursive humor out there, check out confused.

Handling Exceptions and Life's Other Disappointments

An exception is an occurrence of an undesirable situation that can be detected during program execution. Wouldn't it be great if we could build a program to handle undesirable situations automatically? Well now we can! In Chapter 15 we will:
  • Learn what an exception is
  • Learn how to handle exceptions within a program
  • See how a try/catch block is used to handle exceptions
  • Become familiar with C++ exception classes
  • Learn how to create your own exception classes
  • Discover how to throw and rethrow an exception
  • Explore stack unwinding

Overloading and Templates continued, oh My

This week we will finish up chapter 14 on overloading and templates and work on exercises 1 - 5 on pages 871 - 872 in the book.

I am hoping that the exercises should help to solidify some of the guidelines for overloading operators for member and non-member (friend) functions. (This will also be a help when we get to the exam!)

Next week we will look at exception handling and possibly begin to explore recursion.

Chapter 14: Overloading and Templates

This week we will finish up our discussion on Pointers and begin talking about Overloading and Templates in Chapter 14. Specifically, we will begin to look at:
  • Overloading and restrictions on operator overloading
  • The pointer this
  • Friend functions and members and nonmembers of a class
  • How to overload various operators
  • How to construct function templates and class templates
There is no assignment for tonight, continue to work on your programs from Chapter 13 if you need to, or get outside and enjoy the beautiful weather!

I hope you're happy now Selia : )

There, I changed the template of the blog again so it is not such an eye sore. I don't know why but Selia was not a big fan of the fushia template from last week. So to keep everyone happy, we now have this lovely new style.

Last week I said that I hated the template, this was just a guise to get you guys to check out my drupal site, which, of course, you are under no obligation to do.

However, if you want to, you can still visit Drupal on my KFC (kungfuchickenz) site and request an account if you feel like checking it out.

Comments welcomed!