1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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,283
    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