Originally Posted by
Vectris
Thanks nick. Luckily this isn't for a job, yet (I'm going into computer science, specifically I want to deal with programming, but probably in a different language). Nor a test but simply a fun (haha, the things we call "fun") project I was doing on my own.
As for the parser that was my first option however due to the difficulty I was hoping to find a work around, such as compiling the code. Either way it appears you are right and other than writing my own parser there is not much room to fix the cube root problem. Unfortunately parsing all the common math syntax and calculating things like what's in between parameters first etc. seems very difficult to me. I may give it a try but will probably post a separate topic about any suggestions for what approach to take. As of now I don't know regular expressions but I'm guessing they would be very handy in this case, you have any advice on whether I should learn that or if it would be about the same to just stick to indexof and the other basic string functions?