![]() |
|
Модераторы: Poseidon |
![]()
|
|
| KatrinIceLand |
|
|||
|
Бывалый ![]() Профиль Группа: Участник Сообщений: 166 Регистрация: 16.3.2006 Репутация: нет Всего: нет |
Make a rudimentary spell-checking program (call it Java:stafsetn.java; C++: stafsetn.cc) that reads in an Icelandic dictionary and then a file to spell-check. The program uses the dictionary for spell-checking the second document word by word, and in the end lists all the words in the second document not found in the dictionary. The program also lists how often the misspelled word occurred in the document.
Use your dictionary data type from question (тема 1, вопрос о hashing) to keep track of both the Icelandic dictionary as well as the misspelled words. Note: 1) “Word” is defined as a sequence of letters a … ö, (lower and upper case). Note in particular that punctuation marks are ignored (period, comma, question, mark, etc.). 2) If the first letter in a work is upper-case and is not found in the dictionary, then it does not necessarily mean that the word is misspelled (could be first letter in a new sentence). In such cases change the first letter to lower-case and look the word up again. Это сообщение отредактировал(а) KatrinIceLand - 31.10.2007, 21:01 --------------------
[... кто изобрел математику? А зачем?... |
|||
|
||||
![]()
|
| Правила форума "Центр помощи" | |
|
|
ВНИМАНИЕ! Прежде чем создавать темы, или писать сообщения в данный раздел, ознакомьтесь, пожалуйста, с Правилами форума и конкретно этого раздела.
Более подробно с правилами данного раздела Вы можете ознакомится в этой теме. Если Вам помогли и атмосфера форума Вам понравилась, то заходите к нам чаще! С уважением, Poseidon, Rodman |
| 0 Пользователей читают эту тему (0 Гостей и 0 Скрытых Пользователей) | |
| 0 Пользователей: | |
| « Предыдущая тема | Центр помощи | Следующая тема » |
|
|
По вопросам размещения рекламы пишите на vladimir(sobaka)vingrad.ru
Отказ от ответственности Powered by Invision Power Board(R) 1.3 © 2003 IPS, Inc. |