Help!! I'm doing this program on temp. conversion and I encountered the error 'incompatible types in assignment of 'bool' to 'char[4]' Please help ASAP!
you are attempting to assign unit to c on line 23.
unit is an array. did you mean unit[0] or unit[variable] ?
= is assignment. did you mean == there as well?
comparisons in c++ are explicit, not human. you must say
if(unit[0] == 'c' || unit[0] == 'C')
that said your code needs help.
make unit a char, and lose the initialization and array stuff on unit?
eg
char unit;
..
cin >> unit;
if(unit == 'c' || unit == 'C') //this is ok now, its no longer an array