Anagram Example/Quiz https://youtu.be/TnuHIk7MNwc?list=PLQutejmQFO78vdhRiG05xAzhgarJCTkkK http://www.fun-with-words.com/anag_example.html http://www.manythings.org/anagrams/ /* rev quiz: mark6, money note, alphabet-counting (with freq[]) anagram (e.g. time,item; eat,ate; pears,spare; earth,heart; listen,silent) 1. 宣告及初始化 freq1[],freq2[] initFreq() 2. 輸入 word1,word2 inputWords() 3. 檢查字母數 int checkLength() 4. 轉大楷 changeUpper(char s[]) 5. 統計字母數目 calculateFreq() 6. 比較 freq1[] & freq2[] int checkMatching() 7. 顯示結果 time is an anagram of item */ main(){ initFreq(); inputWords(); }