J
Jeff Dillon
Granted this question is for a take-home pre-screening interview question.
No rules against using the newsgroups!
I need to take an input string like (4 * (5 + 6.7) - 81 / 9) and calculate
the result.
I was thinking of using reflection or similar to actually let VB do the
work, like an execute.indirect statement:
dim result as double = <execute.indirect(sInput)>
Any thoughts? Otherwise, I guess I'll have to implement a stack
Jeff
No rules against using the newsgroups!
I need to take an input string like (4 * (5 + 6.7) - 81 / 9) and calculate
the result.
I was thinking of using reflection or similar to actually let VB do the
work, like an execute.indirect statement:
dim result as double = <execute.indirect(sInput)>
Any thoughts? Otherwise, I guess I'll have to implement a stack
Jeff