View Single Post
Old 11-07-2003, 11:49 PM   #7 (permalink)
charliex
Junkie
 
Location: North Hollywood
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
charliex is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73