|
From: <or...@vp...> - 2005-01-10 16:06:27
|
Patel, Nilesh M wrote: > Does anyone know how to change a char into an int.=20 > For example: an A into a 1=20 > or B into a 2. If you want 'A' to be 1, 'B' 2, etc., then: char ch =3D 'C'; // or whatever you wish to convert int i =3D ch - 'A' + 1; -- Greetings, Bal=E1zs |