Week5
This week we started to talk about the class concept and object-oriented programming. classes.ppt is mostly from Section 3.4 and 3.5.
Enumerated type discussion (needed for the Robot class) is from Chapter 9.
We also started to talk about functions that return values and discussed the area_func_return.cpp and the usematch.cpp programs.
Robot class is not in the book, but a document (robotworld.pdf) that explains this class in detail is in robot.zip file. All files needed for the Robot class is also in that zip file.
simplerobot.cpp is the example program that we have seen in the lecture and we modified it with the Go function in the lecture also. robotdemo.cpp and simplerobotdemo.cpp are other example programs that will be discussed in recitations this week.
Powerpoint files
classes.ppt
C++ codes discussed in class (some of them might have been modified in class to show extra features)