Referring to
Kyle M post:
Line 31: What are you inputting here? car, truck and bus are all
int
s. It looks like you're trying to ask for three ints. If so, that's not correct syntax. However, I don't think that is what you mean to do. As Kyle M suggested at line 32-33, you want to ask for the vehicle type, then make decision based on that.
You don't check that vehicle type is C, T or B as per the requirements.
You're not using functions. It is stated in the requirements that you must use functions.
Line 46-55: You need to consider the total minutes parked, not just whether minout is less than minin.
Line 9: You declared a void function vehiceType(). Not clear what this does. Nor does it appear that you ever call it or implement it.
Line 22,76,82,88: You can't store a fractional number in an int.
Line 15: vehicleType is an uninitialized variable (garbage).
Line 71: You try and make a decision based on an uninitialized variable.
Line 91-92: If you're writing C++, there is no reason to use printf. Use cout instead.
Many unused variables:
vehicleCharges, HourlyBusRatek, HourlyTruckRate, ChargeCar, Charges, Hourly, ChargeTruck, ChargeBus, HourlyCarRate
Get rid of them.
PLEASE USE CODE TAGS (the <> formatting button) when posting code.
It makes it easier to read your code and also easier to respond to your post.
http://www.cplusplus.com/articles/jEywvCM9/
Hint: You can edit your post, highlight your code and press the <> formatting button.