My SSN, Zip, and Car classes work. MasterData is nearing completion. I’ve written options 1, 2, 3, 5, and part of 4. I tried using the makefile for the first time today and it has a lot of problems with my Person class. In short, it’s not recognizing the names of the input strings that I declare in my prototypes, and it really hates my operator= overload. The errors for the operator= overload look like this:
Person.cpp:30: error: `const Person& operator=(const Person&)’ must be a
nonstatic member function
Person.cpp:30: error: `const Person& operator=(const Person&)’ must take
exactly two arguments
Person.cpp: In function `const Person& operator=(const Person&)’:
Person.cpp:31: error: invalid use of `this’ in non-member function
Person.cpp:31: error: invalid use of `this’ in non-member function
Person.cpp:32: error: `socsecnum’ undeclared (first use this function)
Person.cpp:33: error: `zip’ undeclared (first use this function)
etc., etc. I can’t figure it out.
EDIT: Tom caught this error without even looking at my code. I forgot to add the Person:: in front of operator=.