#ifndef _CIRCULARLIST_
#define _CIRCULARLIST_
typedef struct CircularListNodeType
{
int data;
struct CircularListNodeType* pLink;
}CircularListNode;
typedef struct CircularListType
{
int currentElementCount;
CircularListNode* pLink;
}CircularList;
CircularList* createCircularList(); // 서큘러리스트 생성 함수
void deleteCircularList(CircularList* pList); // 서큘러리스트 소멸 함수
int addCLElement(CircularList* pList, int position, CircularListNode element); // 원소 추가 함수
int removeCLElement(CircularList* pList,int position); // 원소 제거 함수
void clearCircularList(CircularList* pList); // 서큘러리스트 비우는 함수
int getCircularListLength(CircularList* pList); // 서큘러리스트의 길이를 측정 함수
CircularListNode* getCLElement(CircularList* pList,int position); // 서큘러리스트 원소 불러오는 함수
void displayCircularList(CircularList* pList); // 서큘러리스트 전체보기 함수
#endif
#ifndef _COMMON_LIST_DEF_
#define _COMMON_LIST_DEF_
#define TRUE 1
#define FALSE 0
#endif
그냥 이소슨데 #ifndef,#define 이부분을 뭐라하더라? 아무튼 이부분 같은파일에 왜 두번하는거야?
왕초보라 ㅠㅠ
L 질문은 그부분이아니라 저게 한파일의 소스인데 윗부분하고 아랫부분에 둘다 쓰였자녀 그걸 왜 두번썻냐는거지 한번만써도 똑같은거 아님?