Hamming Numbers


Category:
Scripts
C/C++
Requirements:
Seller:
Price:
-
System:
Rating:
4.8
License:

Description - Hamming Numbers



This program uses the C++ Template Metaprogramming technique to calculate a sequence of Hamming numbers (aka Regular Numbers, aka Ugly Numbers).Notes: * Vary the number of iterations in the main() function to obtain more numbers * use the -ftemplate-depth option in g++ to allow higher recursion level (e.g. -ftemplate-depth-900) JUST ADDED: My SHA1 example (educational) version of Linus Torvald`s git SHA1 implementation, also using the TMP technique. Check the downloads. Daniel Gutson.



More in C/C++-Hamming Numbers

Technique Ftemplate Hamming Numbers