help in calculator code

This is a discussion on help in calculator code within the C++ Programming forums, part of the General Programming Boards category; hi i am looking for a simple code of calculator that run +,- ,* , \ and bitwise & ,| ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,497
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  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,317
    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
    112
    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

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