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:
    1
    Occupation:
    fasfda
    Location:
    fasdf
    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,375
    Likes Received:
    388
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice