shapes.exe [ .exe ]
|
+-- shapes.h
|
+-- shapes.cpp
|
+-- shapemain.cpp
(Makefile shapes.make)
Document the code. Add a new subclass of shape called triangle
and implement the methods. Add a new subclass of rectangle called square.Can
you implement square just by implementing its default constructor? frac.exe [ .exe ]
|
+-- fraction.h
|
+-- fraction.cpp
|
+-- fractionmain.cpp
(Makefile frac.make)
Study the code. Why some operators are implemnted as member functions while
others aren't? What is the advantage of implementing all comparisons using operator<
?