コード例 #1
0
ファイル: wordfreq.cpp プロジェクト: IvanMalison/word_freq
void test_destroy(FrequencyTable mytable)
{
  cout << mytable.size() << endl;

  mytable.destroy();

  cout << mytable.size() << endl;
}
コード例 #2
0
ファイル: wordfreq.cpp プロジェクト: nthnjustice/CSclass
int main()
{
  FrequencyTable table;

  table = maketable(table);

  print(table);

  table.destroy();

  return 0;
}
コード例 #3
0
ファイル: wordfreq.cpp プロジェクト: IvanMalison/word_freq
int main()
{
  string holder;
  FrequencyTable mytable;

  while (cin >> holder) {
    mytable = insert_word(mytable, holder);
  }

  print_words(mytable);
  
  mytable.destroy();

  return 0;
}