I am currently working on a program and I was wondering if there was anyway to input an element FROM an array and find an element in the same location of a parallel array.
string names[3]={"Jim", "John", "Jeff"};
int num[3]={1,2,3};
cout<<"Enter either Jim, John, or Jeff"<<endl;
cin<<name;
If I were to input the name 'John' how would I get the output to print out something along the lines of: 'John has the number 2'