Word Transform
/*** 18.10 Given two words of equal length that are in a dictionary, write a method to transform one word into another word by changing only one letter at a time. The new word you get in each step must be in the dictionary. EXAMPLE input: DAMP, LIKE output: DAMP->LAMP->LIMP->LIME->LIKE ***/ #include <iostream> #include <string> #include <vector> using namespace std; bool isword(string s) { string dic[] = { "damp" , "lamp" , "limp" , "lime" , "like" , "lake" }; int sz = sizeof (dic) / sizeof (string); int i = 0; while (i<sz) { if (dic[i] == s) { ...