I then put operations intersparsed between these digits in an integer array, so it will read, for example "12+345+6".
My question is, how do I evaluate that array to an integer? The above example I want to evaluate to 363.
Thanks in advance!
|
Newbie Member
|
|
| 21Jul2006,23:14 | #1 |
|
I'm reading in an array of digits from a user at the prompt and storing them into an integer array.
I then put operations intersparsed between these digits in an integer array, so it will read, for example "12+345+6". My question is, how do I evaluate that array to an integer? The above example I want to evaluate to 363. Thanks in advance!
|
|
Go4Expert Founder
|
![]() |
| 22Jul2006,19:32 | #2 |
|
Duplicate thread of Mathematically Evaluating an integer array.Thread closed
|