Need help guys

Hello guys.I have a small problem.I want to store a value on a letter(cin>>Xa;).After that I have an equation and instead of typing the number again,I want to type the letter(in which the value is stored) when running the program.How can I do that?

You can use something like a map to store relations between letters and values.
http://en.cppreference.com/w/cpp/container/map
http://en.cppreference.com/w/cpp/container/map/operator_at
Topic archived. No new replies allowed.