cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Need help guys
Need help guys
Jan 19, 2015 at 12:07pm UTC
pankar94
(3)
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?
Jan 19, 2015 at 12:10pm UTC
MiiNiPaa
(8886)
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.