your code seems to have some mistakes in it
while( logicalDrives ) ? what did you intend with this, nothing happens to logicalDrives in the loop, you might have meant an if instead, then a loop for 26 for all drive letters
why are you shifting the result ?
1 << i is the same as pow(2,i)
not sure if you are using ++i just as a style choice, but theres no difference between ++i and i++ in your context
|