|
| |||||||||||||||||||||||||||
| Console (18) | |||
I'm having a slight problem with the following code:
The underlined code has an error (According to MinGW CMDline) that says this: name.cpp:line: error: No match for 'operator==' in 'options == '(first letter in the line)'' I've tried just about everything I can think about with debugging... I'm also a beginner so I don't know how to debug that well... Anyone know what's up? :\ EDIT:: It does the same thing without the single quote-marks. | |||
|
Last edited on
|
|||
| firedraco (4743) | |
Well, first off, you are using the bitwise | operator, which will completely screw it up...you want the logical or (||). Secondly, you can't do it the way you are doing it, you must do it this way:while (options == "A" || options == "S" || /*...*/);
| |
|
|
|