Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
Code snippets for if you need to work in bits.
* Convert Gray code to int, GrayToInt
* Convert int to a std::string of zeroes and ones, IntToBitString
* Convert int to Gray code, IntToGray
* Get Gray codes, GetGrayCodes
* GetGrayCodes, Get Gray codes
* GrayToInt, convert Gray code to int
* IntToBitString, convert int to a std::string of zeroes and ones
* IntToGray, convert int to Gray code