My 15-year-old little brother begins to program, and he wrote a neat little program that displays the entire combination of letters and numbers that are six digits or less. His code was a sequencer loop that updated the elements of a char-level array. It looked bad, but definitely quick! I showed him how to make a simple account, and convert these numbers to base 36.
The biggest problem is that my code was much slower than it, due to what I was doing. Is there a way I can just assume base 36 and print a number from 1 to 36 ^ 6?
Ideally, I want to do something like
[base 36]
for(int i = 0; i < 1000000; i++)
SaveForLaterFileOutput(i);
source
share