링크드 리스트를 이용한 삽입과 삭제
본 자료는 미리보기를 지원하지 않습니다.
닫기
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
해당 자료는 3페이지 까지만 미리보기를 제공합니다.
3페이지 이후부터 다운로드 후 확인할 수 있습니다.

소개글

링크드 리스트를 이용한 삽입과 삭제에 대한 보고서 자료입니다.

본문내용

#include
#include
#include
using namespace std;
class Node
{
friend class NodeList; //링크드 리스트를 위해서 프렌드 이용
friend class SellNode;
private:
string date;
string brand;
string model;
int value;
Node *next;
int count;
public:
Node(string _date,string _brand,string _model,int _value,Node *_next = NULL);
~Node() {}
};
Node::Node(string _date,string _brand,string _model,int _value,Node *_next)
{
date = _date;
brand = _brand;
model = _model;
value = _value;
next = _next;
count = 1;
}
class NodeList
{
friend class SellNode;
private:
Node *head;
public:
NodeList(Node *_head = NULL);
~NodeList();
void sortInsert(string _date, string _brand, string _model, int _value, Node *_next);
void printf();
void search(string _model,SellNode *);
};
NodeList::NodeList(Node *_head)
{
head = _head;
}
NodeList::~NodeList()
{
Node *temp = head;
while(temp != NULL)
{
Node *delNode;
delNode = temp;
temp = temp-> next;
delete delNode;
}
}
class SellNode : public NodeList //팔때이용할 함수
{
private:
public:
void sellPrint();
void sellInsert(string _date, string _brand, string _model, int _value, Node *_next);
SellNode(Node *_head = NULL);
~SellNode();
};
SellNode::SellNode(Node *_head)

키워드

  • 가격1,300
  • 페이지수10페이지
  • 등록일2007.04.30
  • 저작시기2007.1
  • 파일형식기타(cpp)
  • 자료번호#407312
본 자료는 최근 2주간 다운받은 회원이 없습니다.
청소해
다운로드 장바구니