c - "lvalue required as left operand of assignment " error -
The following code produces the "lagoon required as a left-hand operation"
If (C> = 'A' and & amp; c & lt; = 'Z' || c = "" || c = ",") {
Looks like I'm writing this is wrong, what's wrong? And how do I write it correctly?
You should use single quotes for characters and equal to double for equality (otherwise it should be C changes the value)
If (c> = 'A' & amp;; & lt; = 'Z' || C == '' || c = its In addition, you can think of something like this in order to make your Boolean argument even more clear: if ((c> = 'A' & amp; c & lt; = 'Z') || C == '' || C == ',') {
Although your Boolean logic structure works equally (& Amp; & Amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; Year)], things like that you can travel in the future.
Comments
Post a Comment