逻辑锁为什么没有效果?

zhangqigenhuan 2008-05-17 06:33:30
#include<bios.h>
#include<stdio.h>
#include<conio.h>
int main(void)
{int result;
char buffer[512];
clrscr();
result=biosdisk(2,0x80,0,0,1,1,buffer);
if(result)
{buffer[510]=0x0;
buffer[511]=0x0;
printf("fail to read main boot aector!\n");
}
if(!result) result=biosdisk(3,0x80,0,0,1,1,buffer);
(!result)?(printf("writing main boot sector successfully!\n")):(printf("fail to write main boot secor!\n"));
printf("press any key to quit....");
getch();
return 0;
}
编写完这段程序后,为什么系统会提示无法直接访问硬盘呢? 难道这种逻辑锁过期了???还是有什么地方不完善的?
...全文
46 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
clhposs 2008-05-17
  • 打赏
  • 举报
回复
你想干什么? -_-!

69,371

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧