Quote Originally Posted by csonx_p View Post
k, here's my C++ being tested

Code:
// Overload for reading input streams
istream& operator >> (istream& in, Car& car)
{
	in >> car.make >> car.model;
	in >> car.yearModel;
	in >> car.engineCapacity;
	in >> car.tankStatus;
}
Complains....

Code:
error C2248: 'Car::make' : cannot access private member declared in class 'Car'
You either need to make it a of the friend class, or remove Car &car [which by the way should be const] and move it into the Car class. Either will work.

--
Mats