0
#include "Object.h"
#include "Entry.h"
class Node: public Entry{
 public:
 //constructors
  Node();
  Node(int type,int size, Entry *entryArr[],Node *link);
 public:
 //abstract methods
   virtual  bool isFull();
   virtual string toString();
 //public methods
  string toStringSimple();
  Entry* insert(Entry  *entry);
  StudentRecord* treeSearch(int searchKey);
  StudentRecord* leafSearch(int searchKey);
  void insertIntoNode(Entry *entry);
  //int getNumberOfInteriorNodes();
  int splitIndex();
  int depth();
 //accessors and mutators
  Node* getLink();
 //static methods
  static void setSizes(int m, int n);
 private:
  int type;
  int size;
  Entry *entryArr[];
  Entry *entry;
  Node *link;
  int maxSize;
  static const int LEAF = 0;
  static const int INTERNAL = 1;
  static const int MAX_INTERNAL_SIZE;
  static const int MAX_LEAF_SIZE;
 private:
 //private methods
  Entry* split();
 friend class InteriorNode;
 friend class LeafNode;
};

.......
'Entry' has not been declared
ISO C++ forbids declaration of Entry with no type

2
Contributors
1
Reply
2
Views
10 Years
Discussion Span
Last Post by John A
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.