Passenger
instance called David,Passenger david("David", "Toronto", 2018, 4, 20);
|
|
|
|
setEmpty()
is defined as
|
|
|
|
|
|
|
|
true
in every instance. I have always struggled between the difference and implementation of references, pointers and addresses-of. Can someone please explain to me what is wrong with my canTravelWith()
function? TIA (please note, the indicated prototype is something that cannot be changed for the purposed of my assignment).
|
|
|
|
warning: control reaches end of non-void function [-Wreturn-type]
, bool Passenger::canTravelWith( const Passenger& another ) const
function and Im not sure how to fix it.. Any ideas?
|
|
|
|