ascii don't need to convert ?

can i do this?
the Ascii of A to Z is 65 - 90

1
2
3
4
5
6
7
	
for int (i= 65; i<=90;i++ )
	{
         char drive_ID = i ;
	 int drive_type = GetDriveType(drive_ID);
        }

chars are like all other numbers so you can assign numeric literals to them:
char c = 65; is the same as char c = 'A';
closed account (S6k9GNh0)
Yes you can chiwing.
Except on non-ASCII systems... (like old IBM mainframes and the like -- which are still in significant use).

I don't suspect Windows actually runs on any of them though...
Topic archived. No new replies allowed.