Thread: binary help

  1. #1
    Registered User
    Join Date
    Apr 2003
    Posts
    78

    binary help

    hello there fellas I am completley lost right now. We are required to take low level languages here and we just recently started to do binary multiplication and the teacher is an idiot straight up. Anyhow here is the question binary multiplication below

    1111 1000=(-8)
    x0000 0111=(7)
    11111000
    11111000
    11111000
    11001000
    alright here is my question when adding this up you have a couple of places where you have to add four ones on top of one another observe

    1
    1
    1
    1
    + 1
    ___
    how is this situation handled

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    alright here is my question when adding this up you have a couple of places where you have to add four ones on top of one another observe
    Observe that
    a + b + c = (a + b) + c
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User
    Join Date
    Mar 2004
    Posts
    494
    Scroll down to the middle of the page and you will find it.
    http://www.swarthmore.edu/NatSci/ech...inaryMath.html
    When no one helps you out. Call google();

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. arrays vs lists? And containers in general!
    By clegs in forum C++ Programming
    Replies: 22
    Last Post: 12-03-2007, 02:02 PM
  2. Replies: 0
    Last Post: 11-04-2006, 11:07 AM
  3. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  4. Tutorial review
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 03-22-2004, 09:40 PM
  5. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM