Plz correct this
look now i have corrected all errors
i hope this helps
if yes hit a like and don’t forgot to mark doubt as resolved
if you have more doubts regarding this feel free to ask
sir i don,t get why
hashtable
not
this hashtable
why we use hashtable
why not hashtable
i didn’t understand what you want to ask
please check your reply
which hastable??
sir why we use hashtable string not hashtable int
because you are making hastable of string
you use string
price_menu.insert(“BURGER”,“100”);
price_menu.insert(“pizza”,“300”);
price_menu.insert(“coke”,“40”);
price_menu.insert(“patties”,“10”); price_menu.insert(“tea”,“10”);
price_menu.insert(“sweet”,“300”);
these all are strings “burger”,“pizza” etc
sir plz see in my code i have written t value
and string key
yes this is correct
because if you want to make hashmap of int
means something like that
1-> burger
2->pizza
for this you can also use vector so why hashmap
you can use vectorv;
v[1]=“burger”
v[2]=“pizza”
like this
i hope this is clear now
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.