#include#include int main() {DWORD dwLogical= GetLogicalDrives();char c='A';int count=0;while(dwLogical){if(dwLogical & 0x01){printf("%c\n",c);count++;}dwLogical>>=1;c++;}printf("总共有 %d 个盘。\n",count);return 0; }

转载于:https://www.cnblogs.com/dzqdzq/p/3292901.html