Question: I need help defining a class in C++ that acts like a python dictionary. I need to be able to add keys-values to an already
I need help defining a class in C++ that acts like a python dictionary. I need to be able to add keys-values to an already existing dictionary. For example
id= {'sam':75, 'robert':09907, 'timmmy',95453, 'samuel',5333)}.
i want to create a class in which i can do
id.add("samuel', 8439922) and it adds it to the dictionary. i want to implement this with using vectors to store the pairs.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
