Integer point class
In this lab you will implement a class called
IntPoint in two files
IntPoint.hh, write a client program that tests the class, and write a
compiles it together as described in class today. You may want to refresh your memory on
using g++ and using makefiles.
Your programming task
Create a new makefile project called
Implement an class
IntPointthat is identical to Horstmann's Point class as described on "ccc_win" reference, with two exceptions:
IntPointhas integer coordinates.
IntPointwon't be able to draw itself on
You should have a header file with declarations in
IntPoint.hand implementations in
IntPoint.cc. You should also have a client program, perhaps called
main.cc, that will test
IntPoint. You may wish to refer to the project archived in MyString.zip, which we covered in class, as a reference.
After you have created
main.cc, copy the makefile in the
MyStringproject into your project and change it so that it complies and links appropriately.
Do your implementation of the
IntPointclass and do your testing in
Check-offs (2 points): Don't forget to get checked off. I will check your
.hfiles, focusing on your documentation, testing, compilation, and execution.