The following code produces a \"lvalue required as left operand of assignment\"
if( c >= \'A\' && c <= \'Z\' || c = \" \" || c = \",\") {
= is the assigning operator, not the comparing operator. You are looking for ==.
=
==