Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
So as the title states how would I compare, say, a user input to keys in a map? Help is appreciated!

What I have tried:

Google and the C++ Bible I own.
Posted

1 solution

Assuming you mean a std::map - cppreference.com[^], you could use the operator[] or one of the iterators.
 
Share this answer
 
v2
Comments
Brennon Nevels 18-Nov-23 11:56am    
Thanks
Richard MacCutchan 18-Nov-23 12:13pm    
The documentation for all C and C++ can easily be found on the internet. If you go to the link above you can browse and find details for all STL classes. If you want items specific to Microsoft then search by filtering to msdn:
Andre Oosthuizen 18-Nov-23 13:06pm    
+5 for catching the question as it made no sense to me at all.
Richard MacCutchan 19-Nov-23 3:08am    
Thanks Andre. To be honest it did not make much sense to me.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900