[建议]大家有啥小巧又好玩有趣的小程序拿出来都看看吧~
偶的一个小小建议撒~
既然是偶发起的,偶也得现个表率作用,来先~
#include <bios.h> #include <stdio.h>
int main(void) { int result; char buffer[512]; printf("Testing to see if drive a: is ready\n"); result = biosdisk(4,0,0,0,0,1,buffer); result &= 0x02; (result) ? (printf("Drive A: Ready\n")) : (printf("Drive A: Not Ready\n")); return 0; }
//检查设备