コード例 #1
0
 //Overloaded Constructor
 public BookRecord(String name, long sn, int cl, double c)
 {
     this.m_sName = name;
     this.m_iClassification = cl;
     this.m_lStockNum = sn;
     this.m_dCost = c;
     this.m_iCount = 1;
     this.m_pNext = null;
     return;
 }
コード例 #2
0
 //Default Constructor
 public BookRecord()
 {
     this.m_sName = "";
     this.m_iClassification = 0;
     this.m_lStockNum = 0;
     this.m_dCost = 0;
     this.m_iCount = 0;
     this.m_pNext = null;
     return;
 }
コード例 #3
0
 //Sets the next node
 public void setNext(BookRecord next)
 {
     BookRecord temp;
     temp = next;
     m_pNext = temp;
 }
コード例 #4
0
 //Sets the next node
 public void setRight(BookRecord right)
 {
     BookRecord temp;
     temp = right;
     m_pRight = temp;
 }
コード例 #5
0
 //Sets the next node
 public void setLeft(BookRecord left)
 {
     BookRecord temp;
     temp = left;
     m_pLeft = temp;
 }