c++-재고관리프로그램소스
본 자료는 2페이지 의 미리보기를 제공합니다. 이미지를 클릭하여 주세요.
닫기
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
해당 자료는 2페이지 까지만 미리보기를 제공합니다.
2페이지 이후부터 다운로드 후 확인할 수 있습니다.

소개글

c++-재고관리프로그램소스에 대한 보고서 자료입니다.

본문내용

->categoryItem, category);
}
void CategoryInit(char* category)
{
strcpy_s(this->categoryItem, category);
}
char ItemInitCategory()
{
return *categoryItem;
}
void InputItemInformation();
void ShowItemList() const;//상품 카테고리 출력
};
#endif
/*
/Category.cpp
/
/
*/
#include
#include
#include"Category.h"
using namespace std;
void Category::InputItemInformation()
{
cout<<"상품 카테고리 : ";
cin>>categoryItem;
flush(cout);
}
void Category::ShowItemList() const
{
cout< cout<<"--------------------------------------------------"< }
/*
/ItemHandler.h
/
/
*/
#ifndef ITEMHANDLER_H
#define ITEMHANDLER_H
#include
#include"Item.h"
#include"Category.h"
#include"ItemHandler.h"
class ItemHandler : public Item
{//Class Handler
public:
Item* itemList;
Category* categoryList;
int Num;
ItemHandler() : Num(0)
{
itemList = new Item[Num];//상품 기초 정보 동적할당
categoryList = new Category[Num];//상품 카테고리 정보 동적할당
}
void InputItemInformation();//입력
virtual void ShowItemList() const;//출력
void SearchItemInformation();//검색
void SortItemList();//정렬
void swap(Item& list1, Item& list2)
{
Item temp = list1;list1 = list2;list2 = temp;
}
void swap(Category& category1, Category& category2)
{
Category temp = category1;category1 = category2;category2 = temp;
}
int Exit()//종료
{
std::cout<<"프로그램 종료"< return 0;
}
void MenuItemManagement();//메뉴
~ItemHandler()
{
for(int i = 0; i < Num; i++)
{
delete [i]itemList;
delete [i]categoryList;
}
}
};
#endif
/*
/ItemHandler.cpp
/
/
*/
#include
#include"Item.h"
#include"Category.h"
#include"ItemHandler.h"
using namespace std;
int main()
{
ItemHandler hdl;
cout<<"입력할 상품의 수 : ";
cin>>hdl.Num;
hdl.MenuItemManagement();//메뉴 호출
hdl.Exit();//프로그램 종료
return 0;
}

키워드

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