using namespace std; /* Create a function that takes a string and replaces each * letter with its appropriate position in the alphabet. * "a" is 1, "b" is 2, "c" is 3, etc, etc. */ string alphabetIndex(string str) { string result; for(int i = 0;i