Say, one's got a base62 number (alphabet: [aAbBcC-yYzZ0-9]) char *num="abcd"
. The alphabet used to create such a number consists of letters in non-alphabetical order! ('A' after 'a', not 'b').
How to get the next number of the sequence (how to add 1 to base62 number)? Next is "abce" and previous is "abcc". I'd appreciate it if you provide me with some code.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…