base36

Hi guys,

I am creating a program for a serial base output.
But i am having trouble on creating base36 sequence.
I cannot use "if else" condition to this one.
Anyone knows how to create base36 in c++?

I need help this time because im stuck on this
for 2 days now. :(

thank you and regards,
novice
What do you have so far?
0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

base 36 to base 10? what are you trying to do?
blackcoder41 is right .. please explain clearly that you are trying to do ?
base 10 to 36..please help guys :-(
i want to create a serial in base36 format
example: if my last serial end in 2S which is = 100 in decimal
my next serial will be 2T which is equivalent to 101..

regards to all,
0 = 0
1 = 1
2 = 2
3 = 3
4 = 4
5 = 5
6 = 6
7 = 7
8 = 8
9 = 9
A = 10
B = 11
C = 12
D = 13
E = 14
F = 15
G = 16
H = 17
I = 18
J = 19
K = 20
L = 21
M = 22
N = 23
O = 24
P = 25
Q = 26
R = 27
S = 28
T = 29
U = 30
V = 31
W = 32
X = 33
Y = 34
Z = 35


2S = 100
28*36^0 = 28
2*36^1 = 72
28 + 72 = 100

2T = 101
29*36^0 = 29
2*36^1 = 72
28 + 72 = 101

http://everything2.com/title/Convert+any+number+to+decimal
hi blackcoder

thank you for your feed back..i will try this..
to all..thank you
good luck ^^
Topic archived. No new replies allowed.