Not sure why I am getting an error message with this code. Could someone please point me in the right direction?
error messages: 1 IntelliSense: this declaration has no storage class or type specifier
2 IntelliSense: expected a declaration
3 IntelliSense: this declaration has no storage class or type specifier
4 IntelliSense: expected a declaration
5 IntelliSense: expected a declaration
Try changing this if (toupper (code) = 'X') to this, if (toupper (code) == 'X') and see if that helps. A single equal sign, assigns a value, while a double equals, checks the value. Think of it as "If(uppercase (code) IS EQUAL TO 'X') then do this or that."