<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-472951275366776681</id><updated>2012-01-10T20:49:14.398-08:00</updated><title type='text'>C++ Programming 2</title><subtitle type='html'>Course weblog for CISP 232 C++ Programming II | Winter 2009</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://nlr-du-cisp232.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/472951275366776681/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://nlr-du-cisp232.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>NLR</name><uri>http://www.blogger.com/profile/00225284399190208744</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-Ig1p5k2xFKc/TXAOpQqOL7I/AAAAAAAAASI/6V6NZ2L63j4/s220/me.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>14</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-472951275366776681.post-8313994549875772459</id><published>2012-01-06T12:06:00.000-08:00</published><updated>2009-01-20T17:07:02.536-08:00</updated><title type='text'>CISP 232 C++ Programming II</title><content type='html'>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.&lt;br /&gt;&lt;br /&gt;Please send me an &lt;a href="mailto:nicole.ryan@davenport.edu"&gt;email&lt;/a&gt; (nicole.ryan@davenport.edu) if you have any suggestions regarding the weblog.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/472951275366776681-8313994549875772459?l=nlr-du-cisp232.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nlr-du-cisp232.blogspot.com/feeds/8313994549875772459/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nlr-du-cisp232.blogspot.com/2009/01/welcome-to-cisp-220-web-page.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/472951275366776681/posts/default/8313994549875772459'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/472951275366776681/posts/default/8313994549875772459'/><link rel='alternate' type='text/html' href='http://nlr-du-cisp232.blogspot.com/2009/01/welcome-to-cisp-220-web-page.html' title='CISP 232 C++ Programming II'/><author><name>NLR</name><uri>http://www.blogger.com/profile/00225284399190208744</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-Ig1p5k2xFKc/TXAOpQqOL7I/AAAAAAAAASI/6V6NZ2L63j4/s220/me.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-472951275366776681.post-4435806556124957971</id><published>2009-04-14T13:56:00.000-07:00</published><updated>2009-04-14T16:30:33.701-07:00</updated><title type='text'>Linked Lists</title><content type='html'>This week we will explore the exciting world of linked lists.&lt;br /&gt;&lt;br /&gt;We will learn:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;The basic properties of nodes&lt;br /&gt;&lt;/li&gt;&lt;li&gt;How to build a linked list&lt;/li&gt;&lt;li&gt;How to add items [nodes] to a linked list&lt;/li&gt;&lt;li&gt;How to delete items from a linked list&lt;/li&gt;&lt;li&gt;And how to copy a linked list&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/472951275366776681-4435806556124957971?l=nlr-du-cisp232.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nlr-du-cisp232.blogspot.com/feeds/4435806556124957971/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nlr-du-cisp232.blogspot.com/2009/04/linked-lists.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/472951275366776681/posts/default/4435806556124957971'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/472951275366776681/posts/default/4435806556124957971'/><link rel='alternate' type='text/html' href='http://nlr-du-cisp232.blogspot.com/2009/04/linked-lists.html' title='Linked Lists'/><author><name>NLR</name><uri>http://www.blogger.com/profile/00225284399190208744</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-Ig1p5k2xFKc/TXAOpQqOL7I/AAAAAAAAASI/6V6NZ2L63j4/s220/me.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-472951275366776681.post-4921697412425837887</id><published>2009-04-07T14:22:00.000-07:00</published><updated>2009-04-14T17:05:05.990-07:00</updated><title type='text'>Recursion</title><content type='html'>This week we will learn about recursion. &lt;a href="http://en.wikipedia.org/wiki/Recursion"&gt;Recursion&lt;/a&gt; is a method of solving a problem by reducing it into smaller versions of itself.&lt;br /&gt;&lt;br /&gt;And there are people who find this stuff funny. Remember those annoying riddles from childhood like &lt;a href="http://answers.yahoo.com/question/index?qid=20090316195828AABPrVG"&gt;Pete and Repeat&lt;/a&gt;...  well there's even more recursive humor out there, check out &lt;a href="http://www.notablogtm.com/2006/09/15/"&gt;confused&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/472951275366776681-4921697412425837887?l=nlr-du-cisp232.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nlr-du-cisp232.blogspot.com/feeds/4921697412425837887/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nlr-du-cisp232.blogspot.com/2009/04/recursion.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/472951275366776681/posts/default/4921697412425837887'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/472951275366776681/posts/default/4921697412425837887'/><link rel='alternate' type='text/html' href='http://nlr-du-cisp232.blogspot.com/2009/04/recursion.html' title='Recursion'/><author><name>NLR</name><uri>http://www.blogger.com/profile/00225284399190208744</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-Ig1p5k2xFKc/TXAOpQqOL7I/AAAAAAAAASI/6V6NZ2L63j4/s220/me.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-472951275366776681.post-1346472670939305584</id><published>2009-03-31T13:28:00.000-07:00</published><updated>2009-03-31T13:47:25.208-07:00</updated><title type='text'>Handling Exceptions and Life's Other Disappointments</title><content type='html'>An exception is an occurrence of an &lt;a href="http://www.theonion.com/content/node/51154?utm_source=infocus"&gt;undesirable situation&lt;/a&gt; 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:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Learn what an exception is&lt;/li&gt;&lt;li&gt;Learn how to handle exceptions within a program&lt;/li&gt;&lt;li&gt;See how a try/catch block is used to handle exceptions&lt;/li&gt;&lt;li&gt;Become familiar with C++ exception classes&lt;/li&gt;&lt;li&gt;Learn how to create your own exception classes&lt;/li&gt;&lt;li&gt;Discover how to throw and rethrow an exception&lt;/li&gt;&lt;li&gt;Explore stack unwinding&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/472951275366776681-1346472670939305584?l=nlr-du-cisp232.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nlr-du-cisp232.blogspot.com/feeds/1346472670939305584/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nlr-du-cisp232.blogspot.com/2009/03/handling-exceptions-and-lifes-other.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/472951275366776681/posts/default/1346472670939305584'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/472951275366776681/posts/default/1346472670939305584'/><link rel='alternate' type='text/html' href='http://nlr-du-cisp232.blogspot.com/2009/03/handling-exceptions-and-lifes-other.html' title='Handling Exceptions and Life&apos;s Other Disappointments'/><author><name>NLR</name><uri>http://www.blogger.com/profile/00225284399190208744</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-Ig1p5k2xFKc/TXAOpQqOL7I/AAAAAAAAASI/6V6NZ2L63j4/s220/me.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-472951275366776681.post-734760145752647872</id><published>2009-03-24T13:55:00.000-07:00</published><updated>2009-03-24T14:07:21.843-07:00</updated><title type='text'>Overloading and Templates continued, oh My</title><content type='html'>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.&lt;br /&gt;&lt;br /&gt;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!)&lt;br /&gt;&lt;br /&gt;Next week we will look at exception handling and possibly begin to explore recursion.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/472951275366776681-734760145752647872?l=nlr-du-cisp232.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nlr-du-cisp232.blogspot.com/feeds/734760145752647872/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nlr-du-cisp232.blogspot.com/2009/03/overloading-and-templates-continued-oh.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/472951275366776681/posts/default/734760145752647872'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/472951275366776681/posts/default/734760145752647872'/><link rel='alternate' type='text/html' href='http://nlr-du-cisp232.blogspot.com/2009/03/overloading-and-templates-continued-oh.html' title='Overloading and Templates continued, oh My'/><author><name>NLR</name><uri>http://www.blogger.com/profile/00225284399190208744</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-Ig1p5k2xFKc/TXAOpQqOL7I/AAAAAAAAASI/6V6NZ2L63j4/s220/me.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-472951275366776681.post-5704357888852734588</id><published>2009-03-17T14:19:00.000-07:00</published><updated>2009-03-17T14:27:50.638-07:00</updated><title type='text'>Chapter 14: Overloading and Templates</title><content type='html'>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:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Overloading and restrictions on operator overloading&lt;/li&gt;&lt;li&gt;The pointer this&lt;/li&gt;&lt;li&gt;Friend functions and members and nonmembers of a class&lt;/li&gt;&lt;li&gt;How to overload various operators&lt;/li&gt;&lt;li&gt;How to construct function templates and class templates&lt;/li&gt;&lt;/ul&gt;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!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/472951275366776681-5704357888852734588?l=nlr-du-cisp232.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nlr-du-cisp232.blogspot.com/feeds/5704357888852734588/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nlr-du-cisp232.blogspot.com/2009/03/chapter-14-overloading-and-templates.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/472951275366776681/posts/default/5704357888852734588'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/472951275366776681/posts/default/5704357888852734588'/><link rel='alternate' type='text/html' href='http://nlr-du-cisp232.blogspot.com/2009/03/chapter-14-overloading-and-templates.html' title='Chapter 14: Overloading and Templates'/><author><name>NLR</name><uri>http://www.blogger.com/profile/00225284399190208744</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-Ig1p5k2xFKc/TXAOpQqOL7I/AAAAAAAAASI/6V6NZ2L63j4/s220/me.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-472951275366776681.post-3915024647362311658</id><published>2009-03-10T17:28:00.000-07:00</published><updated>2009-03-10T16:33:16.818-07:00</updated><title type='text'>I hope you're happy now Selia : )</title><content type='html'>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.&lt;br /&gt;&lt;br /&gt;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.&lt;br /&gt;&lt;br /&gt;However, if you want to, you can still visit &lt;a href="http://kungfuchickenz.com/drupal/"&gt;Drupal on my KFC (kungfuchickenz)&lt;/a&gt; site and request an account if you feel like checking it out.&lt;br /&gt;&lt;br /&gt;Comments welcomed!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/472951275366776681-3915024647362311658?l=nlr-du-cisp232.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nlr-du-cisp232.blogspot.com/feeds/3915024647362311658/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nlr-du-cisp232.blogspot.com/2009/03/hate-our-template.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/472951275366776681/posts/default/3915024647362311658'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/472951275366776681/posts/default/3915024647362311658'/><link rel='alternate' type='text/html' href='http://nlr-du-cisp232.blogspot.com/2009/03/hate-our-template.html' title='I hope you&apos;re happy now Selia : )'/><author><name>NLR</name><uri>http://www.blogger.com/profile/00225284399190208744</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-Ig1p5k2xFKc/TXAOpQqOL7I/AAAAAAAAASI/6V6NZ2L63j4/s220/me.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-472951275366776681.post-8536673413634272105</id><published>2009-03-10T14:14:00.000-07:00</published><updated>2009-03-10T16:21:08.049-07:00</updated><title type='text'>Chapter 13: Pointers, Classes, Virtual Functions and Abstract Classes</title><content type='html'>In chapter 13 we will learn about:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;The pointer data type and pointer variables&lt;/li&gt;&lt;li&gt;The address of operator and the dereferencing operator&lt;/li&gt;&lt;li&gt;The new and delete operators &lt;/li&gt;&lt;li&gt;Pointer arithmetic and dynamic arrays&lt;/li&gt;&lt;li&gt; Shallow and deep copies of data&lt;/li&gt;&lt;li&gt;The peculiarities of classes with pointer member variables &lt;/li&gt;&lt;li&gt;Virtual functions&lt;/li&gt;&lt;/ul&gt;To get some experience with pointers I would like you to complete programming exercise 2 on page 793 which asks you to redo &lt;a href="http://kungfuchickenz.com/du/cisp232/Ch9_Ex6.cpp"&gt;programming exercise number 6&lt;/a&gt; from chapter 9 using dynamic arrays.  This assignment is due in class two weeks from today, Tuesday, March 24, 2009.&lt;br /&gt;&lt;br /&gt; Here is the &lt;a href="http://kungfuchickenz.com/du/cisp232/Ch13_Ex2Data.txt"&gt;data file&lt;/a&gt; for this assignment.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/472951275366776681-8536673413634272105?l=nlr-du-cisp232.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nlr-du-cisp232.blogspot.com/feeds/8536673413634272105/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nlr-du-cisp232.blogspot.com/2009/03/chapter-13-pointers-classes-virtual_10.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/472951275366776681/posts/default/8536673413634272105'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/472951275366776681/posts/default/8536673413634272105'/><link rel='alternate' type='text/html' href='http://nlr-du-cisp232.blogspot.com/2009/03/chapter-13-pointers-classes-virtual_10.html' title='Chapter 13: Pointers, Classes, Virtual Functions and Abstract Classes'/><author><name>NLR</name><uri>http://www.blogger.com/profile/00225284399190208744</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-Ig1p5k2xFKc/TXAOpQqOL7I/AAAAAAAAASI/6V6NZ2L63j4/s220/me.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-472951275366776681.post-4189868553110689329</id><published>2009-03-03T12:43:00.000-08:00</published><updated>2009-03-03T15:01:03.235-08:00</updated><title type='text'>Inheritance and Composition: Disambiguation</title><content type='html'>In chapter 12, we learned about Inheritance and Composition.  To further clarify the differences between Inheritance and Composition, I would like you to read the following articles: &lt;a href="http://brighton.ncsa.uiuc.edu/%7Eprajlich/T/node14.html"&gt;Object Composition vs. Inheritance&lt;/a&gt; by &lt;i&gt;&lt;a href="http://brighton.ncsa.uiuc.edu/%7Eprajlich/"&gt;Paul John Rajlich&lt;/a&gt;, &lt;/i&gt;Research Programmer at &lt;a href="http://www.ncsa.uiuc.edu/"&gt;The National Center for Supercomputing Applications&lt;/a&gt;; &lt;a href="http://www.eflorenzano.com/blog/post/inheritance-vs-composition/"&gt;Inheritance versus Composition&lt;/a&gt; by &lt;a href="http://www.eflorenzano.com/aboutme/"&gt;Eric Florenzano&lt;/a&gt;, and &lt;a href="http://ifacethoughts.net/2008/03/12/the-inheritance-and-composition-duel/"&gt;The Inheritance versus Composition Duel&lt;/a&gt; by &lt;a href="http://ifacethoughts.net/about/author/"&gt;Abhijit Nadgouda&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;After reading the above articles, please research the following questions on &lt;a href="http://kungfuchickenz.com/du/cisp232/IvC.htm"&gt;Inheritance versus Composition&lt;/a&gt; in class today and submit your answers by Tuesday, March 10, 2009.&lt;br /&gt;&lt;br /&gt;Next week we will move forward with two new programming assignments: One related to Inheritance and Composition, and one related to Pointers.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/472951275366776681-4189868553110689329?l=nlr-du-cisp232.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nlr-du-cisp232.blogspot.com/feeds/4189868553110689329/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nlr-du-cisp232.blogspot.com/2009/03/chapter-13-pointers-classes-virtual.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/472951275366776681/posts/default/4189868553110689329'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/472951275366776681/posts/default/4189868553110689329'/><link rel='alternate' type='text/html' href='http://nlr-du-cisp232.blogspot.com/2009/03/chapter-13-pointers-classes-virtual.html' title='Inheritance and Composition: Disambiguation'/><author><name>NLR</name><uri>http://www.blogger.com/profile/00225284399190208744</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-Ig1p5k2xFKc/TXAOpQqOL7I/AAAAAAAAASI/6V6NZ2L63j4/s220/me.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-472951275366776681.post-1763290797155559436</id><published>2009-03-03T12:31:00.000-08:00</published><updated>2009-03-03T13:47:37.326-08:00</updated><title type='text'>Chapter 12: Inheritance and Composition</title><content type='html'>"Is - A" relationships and "Has - A" relationships... we all know relationships are complicated, so it should come as no surprise that Inheritance and Composition can seem a bit ambiguous at times.&lt;br /&gt;&lt;br /&gt;Chapter 12 sheds some light on Inheritance and Composition, but quite frankly does a much better job at explaining Inheritance than it does Composition. This appears to be a common problem according to some further explanation by fellow programmers, &lt;a href="http://www.eflorenzano.com/blog/post/inheritance-vs-composition/"&gt;Eric Florenzano&lt;/a&gt;, &lt;a href="http://ifacethoughts.net/2008/03/12/the-inheritance-and-composition-duel/"&gt;Abhijit Nadgouda&lt;/a&gt;,  and &lt;a href="http://brighton.ncsa.uiuc.edu/%7Eprajlich/T/node14.html"&gt;Paul Rajlich&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;This week we will explore the differences further by examining  the above articles and completing a worksheet focusing on composition (See the &lt;a href="http://nlr-du-cisp232.blogspot.com/2009/03/chapter-13-pointers-classes-virtual.html"&gt;Chapter 13 post&lt;/a&gt; for more information and a link to the worksheet).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/472951275366776681-1763290797155559436?l=nlr-du-cisp232.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nlr-du-cisp232.blogspot.com/feeds/1763290797155559436/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nlr-du-cisp232.blogspot.com/2009/03/chapter-12-inheritance-and-composition.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/472951275366776681/posts/default/1763290797155559436'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/472951275366776681/posts/default/1763290797155559436'/><link rel='alternate' type='text/html' href='http://nlr-du-cisp232.blogspot.com/2009/03/chapter-12-inheritance-and-composition.html' title='Chapter 12: Inheritance and Composition'/><author><name>NLR</name><uri>http://www.blogger.com/profile/00225284399190208744</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-Ig1p5k2xFKc/TXAOpQqOL7I/AAAAAAAAASI/6V6NZ2L63j4/s220/me.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-472951275366776681.post-1147769793199020942</id><published>2009-01-27T12:44:00.000-08:00</published><updated>2009-02-03T13:49:55.876-08:00</updated><title type='text'>Chapter 11: Classes and Data Abstraction</title><content type='html'>Chapter eleven deals with creating and implementing classes. Today in class we will learn about private, protected, and public members of a class;  explore how classes are implemented; examine constructors and destructors; and learn how classes are used to implement abstract data types and about information hiding.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In Programming Assignment number 2 you will design and implement a class that gives the day of the week. The program requirements are listed on page 655 and 656. Follow the instructions given in the book to create the dayType class described in the exercise. This assignment is due in class next Tuesday, February 3rd.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/472951275366776681-1147769793199020942?l=nlr-du-cisp232.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nlr-du-cisp232.blogspot.com/feeds/1147769793199020942/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nlr-du-cisp232.blogspot.com/2009/01/chapter-11-classes-and-data-abstraction.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/472951275366776681/posts/default/1147769793199020942'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/472951275366776681/posts/default/1147769793199020942'/><link rel='alternate' type='text/html' href='http://nlr-du-cisp232.blogspot.com/2009/01/chapter-11-classes-and-data-abstraction.html' title='Chapter 11: Classes and Data Abstraction'/><author><name>NLR</name><uri>http://www.blogger.com/profile/00225284399190208744</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-Ig1p5k2xFKc/TXAOpQqOL7I/AAAAAAAAASI/6V6NZ2L63j4/s220/me.png'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-472951275366776681.post-3981094569939277491</id><published>2009-01-20T16:33:00.000-08:00</published><updated>2009-03-09T08:42:28.978-07:00</updated><title type='text'>Chapter 10: Records (structs)</title><content type='html'>In chapter 10 we examine structs, including performing operations on members of a struct, manipulating data using a struct, the relationship between a struct and functions, using arrays in a struct, and how to create an array of struct items.&lt;br /&gt;&lt;br /&gt;Exercise 3 of chapter 10 reinforces our discussion and will give you an opportunity to use what we have just learned. I have modified the completed source code for Exercise 3 of Chapter 10 to allow you complete the assignment by completing the code snippet for the showMenu() function.&lt;br /&gt;&lt;br /&gt;Open the modified source code for &lt;a href="http://csis.svsu.edu/%7Enlryan/cisp232/Ch10_Ex3.fill-in.exercise.cpp"&gt;Exercise 3&lt;/a&gt; (here's the &lt;a href="http://kungfuchickenz.com/du/cisp232/Ch10_Ex3Data.txt"&gt;data file&lt;/a&gt;, oops, sorry about that) and complete the showMenu() function as described in the comments within the showMenu() function. This is due in class next Tuesday, January 27.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/472951275366776681-3981094569939277491?l=nlr-du-cisp232.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nlr-du-cisp232.blogspot.com/feeds/3981094569939277491/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nlr-du-cisp232.blogspot.com/2009/01/chapter-10-records-structs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/472951275366776681/posts/default/3981094569939277491'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/472951275366776681/posts/default/3981094569939277491'/><link rel='alternate' type='text/html' href='http://nlr-du-cisp232.blogspot.com/2009/01/chapter-10-records-structs.html' title='Chapter 10: Records (structs)'/><author><name>NLR</name><uri>http://www.blogger.com/profile/00225284399190208744</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-Ig1p5k2xFKc/TXAOpQqOL7I/AAAAAAAAASI/6V6NZ2L63j4/s220/me.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-472951275366776681.post-5839459602272470023</id><published>2009-01-20T13:52:00.000-08:00</published><updated>2009-01-20T16:43:12.440-08:00</updated><title type='text'>Chapter 9 C-Strings and Two Dimensional Arrays</title><content type='html'>As requested here are a couple of programs dealing with C-strings and Two Dimensional Arrays.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://csis.svsu.edu/%7Enlryan/cisp232/Ch9_Ex6.fill-in.exercise.cpp"&gt;Exercise 6&lt;/a&gt; and &lt;a href="http://csis.svsu.edu/%7Enlryan/cisp232/Ch9_Ex9.fill-in.exercise.cpp"&gt;excercise 9&lt;/a&gt; from chapter 9 are mostly complete. Your assignment is to complete each of the programs and understand how the c-string (in exercise 6) and the two dimensional array (in exercise 9) are accessed and processed in each of the programs.&lt;br /&gt;&lt;br /&gt;Chapter 9 exercises 6 &amp;amp; 9 are due in class next Tuesday, January 27.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/472951275366776681-5839459602272470023?l=nlr-du-cisp232.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nlr-du-cisp232.blogspot.com/feeds/5839459602272470023/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nlr-du-cisp232.blogspot.com/2009/01/chapter-9-c-strings-and-two-dimensional.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/472951275366776681/posts/default/5839459602272470023'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/472951275366776681/posts/default/5839459602272470023'/><link rel='alternate' type='text/html' href='http://nlr-du-cisp232.blogspot.com/2009/01/chapter-9-c-strings-and-two-dimensional.html' title='Chapter 9 C-Strings and Two Dimensional Arrays'/><author><name>NLR</name><uri>http://www.blogger.com/profile/00225284399190208744</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-Ig1p5k2xFKc/TXAOpQqOL7I/AAAAAAAAASI/6V6NZ2L63j4/s220/me.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-472951275366776681.post-6808482771485748373</id><published>2009-01-13T14:15:00.000-08:00</published><updated>2009-01-13T14:48:28.603-08:00</updated><title type='text'>Chapter 9: Arrays and Strings</title><content type='html'>Tonight we will be reviewing Chapter 9 which covers Arrays and Strings.&lt;br /&gt;&lt;br /&gt;Your assignments include End of Chapter exercises 2, 4, 5 &amp;amp; 8 (pages 535 - 536), and Programming Exercise 4 (page 539).&lt;br /&gt;&lt;br /&gt;Programming Exercise 4 asks you to write a program that reads a file consisting of students' test scores in the range 0 - 200. It should then determine the number of students having scores in each of the following ranges: 0-24, 25-49, 50-74, 75-99,100-124, 125-149,150-174, and 175-200.&lt;br /&gt;&lt;br /&gt;Output the score ranges and the number of students. (Run  your program with the following input data: 76 89 150 135 200 76 12 100 150 28 178 189 167 200 175 150 87 99 129 149 176 200 87 35 157 189)&lt;br /&gt;&lt;br /&gt;For your convenience, &lt;a href="http://csis.svsu.edu/%7Enlryan/Ch9_Ex4Data.txt"&gt;here&lt;/a&gt; is a link to the input file for Programming Exercise 4.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/472951275366776681-6808482771485748373?l=nlr-du-cisp232.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nlr-du-cisp232.blogspot.com/feeds/6808482771485748373/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nlr-du-cisp232.blogspot.com/2009/01/chapter-9-arrays-and-strings.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/472951275366776681/posts/default/6808482771485748373'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/472951275366776681/posts/default/6808482771485748373'/><link rel='alternate' type='text/html' href='http://nlr-du-cisp232.blogspot.com/2009/01/chapter-9-arrays-and-strings.html' title='Chapter 9: Arrays and Strings'/><author><name>NLR</name><uri>http://www.blogger.com/profile/00225284399190208744</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-Ig1p5k2xFKc/TXAOpQqOL7I/AAAAAAAAASI/6V6NZ2L63j4/s220/me.png'/></author><thr:total>0</thr:total></entry></feed>
