int LOOPS_RUN = 0, MISMATCHES_FOUND = 0, LENGTH_OF_WORDS = word1.length(); // assumes their the same.. not sure if thats true or not.
while(LOOPS_RUN < LENGTH_OF_WORDS)
{
...