Thread: Calculator in c...

  1. #1
    Registered User
    Join Date
    Jul 2009
    Posts
    5

    Calculator in c...

    Hi, i have a exercise in c to do and i donīt really know how to start.
    I have to do a calculator that can do operations like "2+3*(3*5)-1", knowing that the operation between parenthesis has to be done first, and that the operations " * and / " are the second operations to be done etc..., like common algebra.
    If anyone knows how to do this please post because i am lost...
    thank you....

  2. #2
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Why don't you start by making a flowchart?
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed