I’m working on a program that works with functions like x + 3. The program is able to calculate the equation and give the user a table of values. What I want to do next is to add the option to enter something like x + a. If the user puts the x value at 1, for instance, I want it to be able to say 1 + a. What I believe that I need in order to do this is to separate the string into an array, and then have it detect any characters that are alphabet (aside from x). I already know how to separate the string, but is there a way to detect an alphabet character without having to do something like a huge case switch?
I’m working on a program that works with functions like x + 3 .
Share
Compare each character to the end points of the alphabet.
(I don’t know the objective C syntax)
(I’m so bad at formatting on this site it’s not even funny)