摘要:
#include#includeint 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",c... 阅读全文
posted @ 2013-08-31 10:41
浪浪辛
阅读(358)
评论(0)
推荐(0)
摘要:
#include #include #define BUFSIZE 512int main(){ TCHAR szTemp[BUFSIZE]=""; if(GetLogicalDriveStrings(BUFSIZE-1,szTemp)) { TCHAR *p=szTemp; while(*p) { puts(p); p=p+strlen(p)+1; } } return 0;} 阅读全文
posted @ 2013-08-31 10:36
浪浪辛
阅读(209)
评论(0)
推荐(0)

浙公网安备 33010602011771号