Please Help Urgent Someone Please Help Fix Code Ve Trying Days Figure Errors S Template Fi Q37224518

PLEASE HELP! URGENT! CAN SOMEONE PLEASE HELP ME FIX MY CODE.I’VE BEEN TRYING FOR DAYS TO FIGURE OUT THE ERRORS.

here’s my template file (the program I’m having issueswith)

//File. table2.template
//This program implements the functions of the header file

#include <cassert>
#include <iostream>
#include <cstdlib>
#include “table2.h”

using namespace std;
using namespace main_savitch_12B;

//Postcondition: The Table has been initialized as an emptyTable.
template <typename RecordType>
table<RecordType>::table( ) {
}

//Precondition: entry.key >= 0
//Postcondition: If the table already had a record with a key equalto
//entry.key, then that record is replaced by entry. Otherwise,entry has
//been added as a new record of the Table.
template <typename RecordType>
void table<RecordType>::insert(const RecordType& entry){

assert(entry.key >= 0);

size_t index = hash(entry.key);
  
if(!is_present(entry.key)) {
data[index].push_back(entry);
} else

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.