Print if it matches.

Hello everyone, i am quite new to C++. I have a text file.
a;1
b;2
c;3
What i want is , i want a code that ask me a number, and if it matches with the numbers above, i want code to print the corresponding character of the number. Any ideas?
The idea is to store the number-character pairs in such data structure (container) that it is easy to search for a number.

http://www.cplusplus.com/reference/map/map/find/
Topic archived. No new replies allowed.