Originally Posted by
laserlight
Looks like there are other problems:
1. Your constructor definition has illegal syntax. For example, the first parameter does not have a name.
2. In both your constructor and inputRecord() member function, you assign the arguments to themselves. You either have to use different names for the member variables or arguments, or prefix the member variables with this->.
3. You attempt to use printf() with a %s format specifier on a std::string. I suggest either using an I/O stream, or using the c_str() member function of std::string.
EDIT:
Oh wait, looks like the constructor syntax is legal! Unfortunately, I cannot figure out what it means, and I am sure what it means is not what you want.