파일구조(키정렬) 객체지향적으로 클래스를 이용해 c++로 구현
- 최초 등록일
- 2011.08.31
- 최종 저작일
- 2011.06
- 압축파일
- 가격 2,000원
소개글
input.txt 에 있는 레코드의 맨앞의 번호를 기준으로
run 10개를 나누어서 temp.txt파일을 생성후 저장하고
자동적으로 temp.txt에서 불러와서 최종적으로 정렬을해서
output.txt에 정렬한다
컴파일 실행환경
Microsoft Visual C++ 6
본문내용
void Swap_Recodrd(Fixed_Structure& A, Fixed_Structure& B)
{
char c;
for( int Iter1 = 0 ; Iter1 < ID_SIZE ; Iter1++ )
{c = A.ID[Iter1]; A.ID[Iter1] = B.ID[Iter1] ; B.ID[Iter1] = c; }
for( int Iter2 = 0 ; Iter2 < NAME_SIZE ; Iter2++ )
{c = A.NAME[ Iter2 ]; A.NAME[ Iter2 ] = B.NAME[ Iter2 ] ; B.NAME[ Iter2 ] = c; }
for( int Iter3 = 0 ; Iter3 <= ADDRESS_SIZE + 1; Iter3++ ) // 엔터키 포함
{c = A.ADDRESS[Iter3]; A.ADDRESS[Iter3] = B.ADDRESS[Iter3] ; B.ADDRESS[Iter3] = c;}
}
압축파일 내 파일목록
bororo.cpp
bororo.dsp
bororo.dsw
bororo.ncb
bororo.opt
bororo.plg
Debug/bororo.exe
Debug/bororo.ilk
Debug/bororo.obj
Debug/bororo.pch
Debug/bororo.pdb
Debug/sfsfs.obj
Debug/sfsfsf.obj
Debug/sgsgs.obj
Debug/vc60.idb
Debug/vc60.pdb
input.txt
새 텍스트 문서 (2).txt
새 텍스트 문서.txt
참고 자료
없음