In your first program you forgot to scope the input function in the definition of it.

should be
void RaceCar::input( blah blah blah)
{
// more code
}


I'm working on the second now