Thread: 1's And 2's Compliemnt

  1. #1
    Registered User
    Join Date
    Oct 2009

    Red face 1's And 2's Compliemnt

    Hello To All!
    I want code to convert any decimal number in to 1's and 2's complement

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Sounds like a good goal to me. Keep us updated when you have written the code.
    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
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    We don't always get what we want.

    Hope is the first step on the road to disappointment.

  4. #4
    Make Fortran great again
    Join Date
    Sep 2009

  5. #5
    Join Date
    Oct 2007
    Inside my computer
    Sigh. People these days...
    They just respond with some unhelpful reply which helps the one is absolutely no way whatsoever. They may be misguided, and to help them, you must put them on the right path. Just replying with something incoherent will not help in any way and is what I would classify as spam.
    Anyway, read our homework policy.
    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

Similar Threads

  1. Bitwise OR
    By tinkerbell20 in forum C++ Programming
    Replies: 4
    Last Post: 06-11-2005, 02:23 AM
  2. 1's and 2's complement
    By Jaguar in forum C Programming
    Replies: 3
    Last Post: 10-14-2003, 09:12 AM

Tags for this Thread