1's And 2's Compliemnt

This is a discussion on 1's And 2's Compliemnt within the C Programming forums, part of the General Programming Boards category; Hello To All! I want code to convert any decimal number in to 1's and 2's complement...

  1. #1
    Registered User
    Join Date
    Oct 2009
    Posts
    1

    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
    Location
    Singapore
    Posts
    22,303
    Sounds like a good goal to me. Keep us updated when you have written the code.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    We don't always get what we want.


    Quzah.
    Hope is the first step on the road to disappointment.

  4. #4
    Epy
    Epy is offline
    Fortran lover Epy's Avatar
    Join Date
    Sep 2009
    Location
    California, USA
    Posts
    999
    haha

  5. #5
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Posts
    23,022
    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, 03:23 AM
  2. 1's and 2's complement
    By Jaguar in forum C Programming
    Replies: 3
    Last Post: 10-14-2003, 10:12 AM

Tags for this Thread


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