This is a discussion on Gray Code to Binary Code Conversion! within the C++ Programming forums, part of the General Programming Boards category; nbbmnb...
Last edited by JKrakauer; 03-15-2011 at 04:23 AM.
Look up left and right shift operators >> and << one of them might help you solve this problem.
Selfish cross-poster and thread deleter
Gray Code To Binary Code Conversion! - C And C++ | Dream.In.Code
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.