-
>> it holds chars and ints
An array cannot hold more than one type. If you are storing more than one type of data in an array, you put that data into a struct. That struct is a type. Then your array holds that type.
So in your case, while your array does hold chars and ints, those chars and ints are held inside a struct named car. It is that type that you should use declare your array.
Do you see how the spaces array holds cars, not chars and ints?
-
ok, I think I fix every thing, no errors but 2 warnnig
this is a warning:
local variable 'Hr' used without having been initialized
local variable 'Min' used without having been initialized
-
Those probably need to be initialized. Perhaps by using milhours and milmin?
-
what do you mean by milhours and milmin?
-
>what do you mean by milhours and milmin?
Local variables need to be assigned a value, Daved was giving you an example
-
>> what do you mean by milhours and milmin?
Hr and Min are being used without having any value given to them. That function takes a parameter called milhours and one call milmin. My guess is that you use those values to initialize Hr and Min to some value so you can use them in your function.