[C]4장 배열로 구현한 리스트
본 자료는 1페이지 의 미리보기를 제공합니다. 이미지를 클릭하여 주세요.
닫기
  • 1
  • 2
  • 3
  • 4
해당 자료는 1페이지 까지만 미리보기를 제공합니다.
1페이지 이후부터 다운로드 후 확인할 수 있습니다.

소개글

[C]4장 배열로 구현한 리스트에 대한 보고서 자료입니다.

본문내용

>list[position]=item;
}
int is_in_list(ArrayListType *L, element item)
{
int i;
for(i=0; i<(L->length);i++)
if(L->list[i]==item) return TRUE;
return FALSE;
}
element get_entry(ArrayListType *L, int position)
{
if( position < 0 || position >= L->length )
error("위치 오류");
return L->list[position];
}
main()
{
ArrayListType list1;
ArrayListType *plist;
init(&list1);
add(&list1, 0, 10);
add(&list1, 0, 20);
add(&list1, 0, 30);
display(&list1);
plist = (ArrayListType *)malloc(sizeof(ArrayListType));
init(plist);
add(plist, 0, 10);
add(plist, 0, 20);
add(plist, 0, 30);
display(plist);
free(plist);
}
  • 가격400
  • 페이지수4페이지
  • 등록일2016.01.14
  • 저작시기2010.6
  • 파일형식한글(hwp)
  • 자료번호#992202
본 자료는 최근 2주간 다운받은 회원이 없습니다.
청소해
다운로드 장바구니