Switch Statements

Hello. I'm creating a simple calculator application using Xcode and C++. I'm trying to have the user type in add subtract multiply or divide to do so. What function would I use. I'm currently using a switch statement for it but it doesn't work correctly as far as typing a whole word.
Post some code. We can then either show you how to fix the switch statement or suggest how to go about writing a function.
switch doesn't work for strings, it can only be used with built in integral types and enums. For other types, you have to use an if - else chain.
Topic archived. No new replies allowed.