|
해더부분이고요
struct SPoint { //이 스트럭쳐를 쓰는 자료 형에 따라 바꿔주고 싶은데 방법이 없나요?
int X ;
int Y ;
};
// 요 이하로는 건들지 않고요
//--------------------------------------------------------------------------
struct Node : SPoint {
Node *NextNode;
};
class SLinkedList
{
private :
int DataCnt ;
Node *SttNode ;
Node *EndNode ;
Node *NewNode ;
int CrntNodeId ;
Node *CrntNode ;
public :
SLinkedList();
~SLinkedList();
void DeleteAll();
void PushFrnt (Node Pnt ) ;
void PushBack (Node Pnt ) ;
int Insert (Node Pnt , int Pos) ;
void PopFrnt ( ) ;
void PopBack ( ) ;
int Delete ( int Pos) ;
int GetDataCnt ( ) ;
int GetPnt (Node &Pnt, int Pos) ;
// 빠르게 모두 가져오기 위한 함수 임.
int GetCrntNode(Node &Pnt , int &PntNo , bool FromFirst = false ) ; //(받아올 Point , 받아올 Point No , Point No 1번부터 할것인지)
};
|