1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

Mathematically Evaluating an integer array

Discussion in 'C' started by Iasthaai, Jul 21, 2006.

Thread Status:
Not open for further replies.
  1. Iasthaai

    Iasthaai New Member

    Joined:
    Jul 21, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    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! :)
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,276
    Likes Received:
    364
    Trophy Points:
    83
    Duplicate thread of [thread=1044]Mathematically Evaluating an integer array[/thread].Thread closed
     
Thread Status:
Not open for further replies.

Share This Page