Question: struct Node { Bid bid; unsigned int key; Node * next; / / default constructor Node ( ) { key = UINT _ MAX; next

struct Node {
Bid bid;
unsigned int key;
Node *next;
// default constructor
Node(){
key = UINT_MAX;
next = nullptr;
}
// initialize with a bid
Node(Bid aBid) : Node(){
bid = aBid;
}
// initialize with a bid and a key
Node(Bid aBid, unsigned int aKey) : Node(aBid){
key = aKey;
}
};
vector nodes;
unsigned int tableSize = DEFAULT_SIZE;
unsigned int hash(int key);
const unsigned int DEFAULT_SIZE =179;
double strToDouble(string str, char ch);
struct Bid {
string bidId; // unique identifier
string title;
string fund;
double amount;
Bid(){
amount =0.0;
}
};
Given these following fields and structures I need to complete all the tasks within their respective functions. Any help?
struct Node { Bid bid; unsigned int key; Node *

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!