목차
1. 3개의 헤더파일
2. 3개의 소스파일
2. 3개의 소스파일
본문내용
/*
CreateStackDll 함수
함 수 명 : CreateStackDll
호출 함수 :
전달 인수 : 없음
반 환 값 : 없음
*/
void CreateStackDll(StackDll *pSelf)
{
pSelf ->Bottom = (DLL *)malloc(sizeof(DLL));
CreateDll(pSelf ->Bottom);
pSelf ->Top = pSelf ->Bottom ->position;
pSelf ->length = pSelf ->Bottom ->count;
/* 관계성을 위한 함수형 Pointer 변수 */
pSelf ->DestroyStackDll = DestroyStackDll;
pSelf ->IsEmptyStackDll = IsEmptyStackDll;
pSelf ->PushDll = PushDll;
pSelf ->PopDll = PopDll;
pSelf ->GetLengthStackDll = GetLengthStackDll;
pSelf ->PrintStackDll = PrintStackDll;
pSelf ->PrintAllStackDll = PrintAllStackDll;
return;
}
CreateStackDll 함수
함 수 명 : CreateStackDll
호출 함수 :
전달 인수 : 없음
반 환 값 : 없음
*/
void CreateStackDll(StackDll *pSelf)
{
pSelf ->Bottom = (DLL *)malloc(sizeof(DLL));
CreateDll(pSelf ->Bottom);
pSelf ->Top = pSelf ->Bottom ->position;
pSelf ->length = pSelf ->Bottom ->count;
/* 관계성을 위한 함수형 Pointer 변수 */
pSelf ->DestroyStackDll = DestroyStackDll;
pSelf ->IsEmptyStackDll = IsEmptyStackDll;
pSelf ->PushDll = PushDll;
pSelf ->PopDll = PopDll;
pSelf ->GetLengthStackDll = GetLengthStackDll;
pSelf ->PrintStackDll = PrintStackDll;
pSelf ->PrintAllStackDll = PrintAllStackDll;
return;
}
소개글