Okay, fair enough. You're still using the ternary operators incorrectly. The ternary operator must evaluate to a value, not an expression. So you can't do this:
x > 0 ? y = 1 : y = 2;
You...
Type: Posts; User: KevinWorkman
Okay, fair enough. You're still using the ternary operators incorrectly. The ternary operator must evaluate to a value, not an expression. So you can't do this:
x > 0 ? y = 1 : y = 2;
You...
The compiler doesn't "hint" at anything. It gives you very specific errors.
You have multiple syntax errors in this code. You're using the ternary operator incorrectly, and you have a random if...
You tell us. What lines are the errors on? What types are you working with on those lines? What types is it expecting?