/* ファイル名前を回復されるべき確認しなさい */
gotoxy(10,22);
cprintf("回復したいと思う");
for(i=0;i<8;i++)
{
gotoxy(30+i,22);
cprintf("%c",*(loc+i)); /* ファイル名前*/
}
gotoxy(38,22);
cprintf(".");
for(i=0;i<3;i++)
{
gotoxy(39+i,22);
cprintf("%c",*(loc+8+i)); /* ファイル・エクステンション */
}
start=*(loc+12);
/// 残念、登録簿を選んだ \\\
if(*(loc+11)==16)
{
gotoxy(5,23);
cprintf("aの登録簿はある。 この登録簿Y/Nの内容を見たいと思う");
ch=getch();
if(ch==27)
main();
if(ch=='y' || ch=='Y')
{
/* Geomatryを計算しなさい */
calculate(start,&cylinder,&head,§or);
/* 表示登録簿の内容*/
Display_Information(cylinder,head,sector);
}
else
/* aファイルを再度頼み、回復を続けなさい*/
recover(root,len);
}
else
{
size=*(loc+13);
/* CHSインフォメーションのために計算しなさい */
calculate(start,&cylinder,&head,§or);
/* ファイルを統合しなさい*/
integrate(size,cylinder,head,sector);
}
}
コーディングのコメント:
機能は()入るためにユーザーを得ることである回復を始めるために回復する。 ファイルを回復するためにユーザーが入力として与えるファイル番号はfile_noで貯えられる。
入れられた数がディレクトリ・エントリのためなら回復されるべきファイルを確認するために、Display_Informationはスクリーンに()その登録簿、他にファイル番号のfile_noのファイル名前そして延長の内容を表示される示す。
|