[ 11.html ]
You can do some of this material in class 18 and the rest is part of CSCI330.
Study
Chapter 14
and do Review Questions.
These are very helpful but the syntax is a mess. As a result ALWAYS
copy/paste the header from a working example and modify it to
fit the new class. I do not want you to waste time memorizing this
syntax. It will not be on any quizzes or the final. However you
do need to be able to remember what it means if I give you a correct example.
Here is the source code for this chapter
(Fractions):
[ fraction.cpp ]
[ fraction.h ]
[ fractiontest.cpp ]
Makefile for fractions:
fractiontest: fractiontest.cpp fraction.h fraction.o
g++ -w -o fractiontest fraction.o fractiontest.cpp
./fractiontest
fraction.o: fraction.h fraction.cpp
g++ -w -c fraction.cpp
(Matrices): The first cut
[ matrix1.cpp ]
[ matrix1.h ]
[ matrixtest1.cpp ]
Hand in one even numbered question+answer at the start of class.
Hand in what you have four Project 2, and project 1 resubmit.
[ 12q.html ]
Chapter 10,11,12, algorithm, P2
[ 13.html ]
Next project due on class 17.
Next quiz in class 17.
Mathematicians have pointed out to me that the C++ language allows you
to define implementations of abstarct algebra. For example, a
group might have a definition like this
class Group
{
public:
Group operator+(Group other);
static Group zero();
Group operator-();
}
BUT -- this is only try if the operator are implemented to follow the axioms
that define a group --
Net