Calculator in c...

This is a discussion on Calculator in c... within the C Programming forums, part of the General Programming Boards category; Hi, i have a exercise in c to do and i donīt really know how to start. I have to ...

  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をこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,790
    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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21