void PrintArray(WordListT & words){ WordT tmp; words.FirstWord(); tmp = words.CurrentWord(); while (words.NextWord()) { cout << setw(20) << tmp.GetWord() << setw(4) << tmp.GetCount() << endl; tmp = words.CurrentWord(); } return; }