Jan 9, 2012 at 12:36pm
dob[2]
is a char.
You cannot use the +
operator to concatenate "month of birth: " and a char.
You don't actually need to concatenate them; just output the char separately with the <<
operator.
Jan 9, 2012 at 12:47pm
Woo, ok thanks that works :)