0
How to use a string input(cin) to use a value from array?
If the user types in "IT" I want to print the value of arr[2][3] , then how can I do it? They should be different outputs for different inputs.
3 Respostas
+ 2
Strings have a length all you need to do is loop through the string and add the position to the array.
0
Your question is not clear. Please edit and provide more description.