Well, the task is neither new nor unsolved. I was particularly interested in the fancy possibility to use a map container for binary search. Of course, boost offers better (read: faster and shorter) ways. Both of them can be implemented in a few lines. #include <map> #include <boost/random.hpp> #define CHOICES […]
Daily archives: February 23, 2013
1 post