- cin >> microcar[count].vehicleName;
First, vehicleName is a member function of typeOfVehicle. But the () are missing.
Second, you would need an operator>>(typeOfVechicle&, typeOfVehicle::vehicleName*), which doesn't exist. Hence the error.
The whole thing looks fishy. I suspect you want to enter the name of the vehicle using a typeOfVehicle object:
- microcar[count].SetvehicleName();
where typeOfVehicle::SetVehicleName() does the cin.
BTW: I notice the vehicleName is a char. Mighty short name. Maybe use a C++ string object.