2
2005
Hi
I have initialized a member as below:
class CNode {
public:
CNode() : m_pNext(0), m_ticketNum(0) {}
----
private:
int m_ticketNum; // ticket number of car
CarNode *m_pNext;
};
In a function I am creating a new node, say
CNode *pCurNode;
I also wish to assign values to m_pNext & m_ticketNum - How? What is
the syntax?
Thanks
I have initialized a member as below:
class CNode {
public:
CNode() : m_pNext(0), m_ticketNum(0) {}
----
private:
int m_ticketNum; // ticket number of car
CarNode *m_pNext;
};
In a function I am creating a new node, say
CNode *pCurNode;
I also wish to assign values to m_pNext & m_ticketNum - How? What is
the syntax?
Thanks