소개글
링크드리스트를 이용하여 아이템 입력, 삭제, 출력, 리스트 합치기
class SortedType
{
public:
SortedType();
void MakeEmpty();
bool IsFull() const;
int LengthIs() const;
bool RetrieveItem(ItemType& item, bool& foune);
void InsertItem(ItemType item);
void DeleteItem(ItemType item);
void ResetList();
void GetNextItem(ItemType& item);
private:
int length;
ItemType info[MAX_ITEMS];
int currentPos;
friend void SplitLists(const SortedType& list, ItemType item, SortedType& list1, SortedType& list2);
};
컴파일 실행환경
Microsoft visual c++
압축파일 내 파일목록
01.cpp
ItemType.cpp
ItemType.h
참고 자료
없음