순차파일 런 생성
본 자료는 4페이지 의 미리보기를 제공합니다. 이미지를 클릭하여 주세요.
닫기
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
해당 자료는 4페이지 까지만 미리보기를 제공합니다.
4페이지 이후부터 다운로드 후 확인할 수 있습니다.

소개글

순차파일 런 생성에 대한 보고서 자료입니다.

목차

1. 소스

2. 실행결과

본문내용

;
Fout_Error.put(ErrTrn[NewErrCnt].trnstu.Age[i]);
}
for(i=0;i<16;i++)
{
ErrTrn[NewErrCnt].trnstu.Major[i]=trn[CntTrn].trnstu.Major[i];
Fout_Error.put(ErrTrn[NewErrCnt].trnstu.Major[i]);
}
for(i=0;i<13;i++)
{
ErrTrn[NewErrCnt].trnstu.Phone[i]=trn[CntTrn].trnstu.Phone[i];
Fout_Error.put(ErrTrn[NewErrCnt].trnstu.Phone[i]);
}
Fout_Error.put('\n');
CntTrn++;
NewErrCnt++;
break;
}
break;
case 2:
for(i=0;i<3;i++)
{
NewStd[NewCnt].Number[i]=std[CntStd].Number[i];
Fin_Mst.put(NewStd[NewCnt].Number[i]);
}
for(i=0;i<6;i++)
{
NewStd[NewCnt].Name[i]=std[CntStd].Name[i];
Fin_Mst.put(NewStd[NewCnt].Name[i]);
}
for(i=0;i<2;i++)
{
NewStd[NewCnt].Age[i]=std[CntStd].Age[i];
Fin_Mst.put(NewStd[NewCnt].Age[i]);
}
for(i=0;i<16;i++)
{
NewStd[NewCnt].Major[i]=std[CntStd].Major[i];
Fin_Mst.put(NewStd[NewCnt].Major[i]);
}
for(i=0;i<13;i++)
{
NewStd[NewCnt].Phone[i]=std[CntStd].Phone[i];
Fin_Mst.put(NewStd[NewCnt].Phone[i]);
}
Fin_Mst.put('\n');
CntStd++;
NewCnt++;
break;
}
};
PrintChart();
PrintStudent(&NewStd[0]);
PrintErrChart();
PrintErr(&ErrTrn[0],NewErrCnt+1);
Fin_Mst.close();
Fin_Trn.close();
Fout_Error.close();
Fin_Mst.close();
}
int CompNumber(int trn, int std)
{
if(trn return 0;
else
if(trn==std)
return 1;
else
return 2;
}
void PrintChart()
{
cout< cout<<" 학생 명부 정리 결과 출력"< cout<<"======================================================"< cout<<"학번 성 명 나이 전 공 전 화 번 호"< cout<<"======================================================"< }
void PrintErrChart()
{
cout< cout<<" 에러난 트랜잭션 필드"< cout<<"============================================================"< cout<<"코드 학번 성 명 나이 전 공 전 화 번 호"< cout<<"============================================================"< }
void PrintStudent(Student *NewStd)
{
int i,j;
for(i=0; i<50; i++)
{
if((NewStd[i].Number[0]==NULL))
{
break;
}
else
{
cout<<" ";
for(j=0; j<3; j++)
cout< cout<<" ";
for(j=0; j<6; j++)
cout< cout<<" ";
for(j=0; j<2; j++)
cout< cout<<" ";
for(j=0; j<16; j++)
cout< cout<<" ";
for(j=0; j<13; j++)
cout< cout< }
}
}
void PrintErr(Tran *ErrTrn, int cnt)
{
int i,j;
for(i=0; i {
cout<<" ";
cout< cout<<" ";
for(j=0; j<3; j++)
cout< cout<<" ";
for(j=0; j<6; j++)
cout< cout<<" ";
for(j=0; j<2; j++)
cout< cout<<" ";
for(j=0; j<16; j++)
cout< cout<<" ";
for(j=0; j<13; j++)
cout< cout< }
}
void WriteFile_NewMaster(ofstream Write, Student *NewStd, int cnt)
{
int i,j;
for(i=0; i {
for(j=0; j<3; j++)
for(i=0;i<6;i++)
Write.put(NewStd[i].Name[j]);
for(i=0;i<2;i++)
Write.put(NewStd[i].Age[j]);
for(i=0;i<16;i++)
Write.put(NewStd[i].Major[j]);
for(i=0;i<13;i++)
Write.put(NewStd[i].Phone[j]);
Write.put('\n');
}
}
실행결과
1. 출력화면
2. 마스터파일, 트랜잭션파일, 수행 후 거절된 트랜잭션 파일
3. 최종 결과 텍스트 파일

키워드

  • 가격300
  • 페이지수13페이지
  • 등록일2003.11.09
  • 저작시기2003.11
  • 파일형식한글(hwp)
  • 자료번호#232029
본 자료는 최근 2주간 다운받은 회원이 없습니다.
청소해
다운로드 장바구니