Thread: help in calculator code

  1. #1
    Registered User
    Join Date
    Apr 2007
    Posts
    2

    help in calculator code

    hi
    i am looking for a simple code of calculator that run +,- ,* , \ and bitwise & ,| and ~

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    Hold down the 'windows' key and press 'R'
    Type 'calc' into the dialog and press enter - one calculator for your enjoyment.

    If you want help creating your own, then
    http://cboard.cprogramming.com/annou...t.php?f=3&a=39
    http://cboard.cprogramming.com/annou...t.php?f=3&a=51
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Apr 2007
    Posts
    2
    acually i didnt understand what do u mean, where is that window and how to get code from it ?
    i am just trying to solve some problems with implementing arithmetic and bitwise operations in the same time , so that i am asking if you have a simple code to see what alternatives do i have

  4. #4
    Registered User
    Join Date
    Jan 2005
    Posts
    7,366
    Show what code you have and we might be able to help you fix it up or give alternative suggestions.

    Make sure you read the links in Salem's post and feel free to search the board for more information as well.

  5. #5
    Registered User
    Join Date
    Apr 2007
    Posts
    111
    do you need the elctrical diagram ?
    if so :
    addition
    read about full header and Half header.

    substraction:
    complement to two.
    halfheader.

    multiplecation:
    lots of additions.

    multiplication by two:
    just shift all the bits left(add one digit).

Popular pages Recent additions subscribe to a feed