I have been trying for hours to figure out why I get this error, or how to fix it. The class seems very simple, but I cannot figure this out. Any help is appreciated.
No I haven't written the copy constructor. I was told to start with the constructor then move down and this is the next class function. Should I consider attempting the copy constructor?
Yes, you need a copy constructor (and it needs to work like operator=)
In general, if you have to write operator=, you also need a copy constructor and vice versa.
You should note that your operator= is not called by line 4 of your main even though you use the assignment operator. In reality the compiler is invoking the copy constructor.