This is giving me a segmentation fault in the noBucket() function. I don't see why. Does it having something to do with it being a const function? My other accessor functions
are working fine and they are declared exactly the same with just a different name. The files are longer than this I just pasted the relevant code(from what I could tell).
class Bucket
{
unsigned short _noBucket;
public:
unsigned short noBucket() const {return _noBucket;}
};
class Hashtable
{
Bucket _buckets[30];
public:
void printReport(ostream& o) {o << "Bucket Number: " << _buckets[i].noBucket() << '\n';}
};