Comp 272 - Data Abstraction and OOP - Dordal

Fall 2004, 12:35-1:25, 25EP Room 105

Text: Cay Horstmann, Practical Object-Oriented Development in C++ and Java, Prentice-Hall 1999.

Grades: There will be a midterm and a final. The midterm was Monday, Oct 18. The final will be Tuesday, December 14, 8:30-10:30 am, the time listed in the schedule, in our usual room. There will also be various programming assignments, and possibly some written exercises. Programming will be in C++.

My general course groundrules are here. Exams will count for between 70% to 80% of your grade, with homework and programs making up the rest.


Course goals: Note the final one is the least important!

My ongoing (but sometimes sketchy) class notes are here.

Here is the midterm study guide. Answers are now here!

Here is the final exam study guide, with answers.

Programming assignments:
 
Assignment Due date data file files needed, etc
MiniDate Sept 17 none see handout for daysinmonth()
voicemail system Oct 8 (final extension!) none voicemail.cpp
graphical shapes Nov 3 none shapes.cpp, graphics.h, graphics.cpp
game Nov 19 none game.cpp, list.h, sent.h, sent.cpp
string2 Dec 10 none T_array.cpp

Note for program 2 (voicemail): my stub voicemail.cpp suggests a function
MailSystem::receive_message2();
While it is possible to do it that way, it may be easier to add the mailbox as a reference parameter:
Mailsystem::receive_message2(Mailbox & m);
That way, you can refer to things like m.greeting() within receive_message2. To call the function, your code in process_dialing() would look something like
if (extn == 9999) receive_message2(_admin)


some demo programs from class:


Building an empty Visual C++ project

To build a new Visual C++ project with support for console I/O and without Microsoft's annoying stdafx files, do the following:

Alternatively, here are the files needed for a simple project:

Copy all four of them into an empty directory, open hello.sln, and edit it into whatever you need. (It is possible, however, that unbeknownst to me one of these files contains references to my particular machine/configuration, and won't work for you.)

Notes on getting Visual C++

Microsoft Visual C++ .net (vc++ version 7) is available to Loyola CS students under the terms of the Microsoft Academic Alliance: you are allowed to download and permanently install the software, though you cannot keep getting updates after you leave Loyola.

To get the software, mount \\turing.math.luc.edu\msdnaa, and then copy the file en_vs.net_2003_pro_full.exe. This is about 560MB. Running this should install what you need; you should not need anything in the "net" folder, and you should not need a license key. Contact me if you seem to need something not mentioned here.

At the current time, ftp access is not available. However, I will try to get some loaner CDs. Alternatively you can come into Loyola to burn your own cd.