Your compiler should choke on that input. The diagnostics may or may not be useful, you have not indicated.
A proper if construct looks something like:
if (condition) {
// code for this condition
} else if (some_other_condition) {
// code here
} else {
// catch-all case in the if-else tree
}
In your case you want your conditions to look like variable == value or, more specifically, sign == '*'
L7Sqr
Practically a Posting Shark
851 posts since Feb 2011
Reputation Points: 253
Solved Threads: 155
Skill Endorsements: 7