class Node
{
private:
char CTR[10];
Node* pNext;
public:
int getNB(void) { return nNB; }
Node *getNext(void) { return pNext; }
void setCTR(char n) { CTR = n; }
void setNext(Node* next) { pNext = next; }
};
class LinkedList
{
private:
char CTR[10];
Node* pHead;
public:
void Insert();
void get();
void Print();
};
void LinkedList::get(){cin >> CTR;}
void LinkedList::Insert()
{
get();
Node *newnode, *cur;
newnode = new Node;
newnode->setNB(data);
newnode->setNext(NULL);
if( !pHead )
올라가다 마네..
디버깅 해보면 연산에 실패했다느니 그러는데 어떻게 해야하는건가요?