|
|
Регистрация Восстановить пароль |
Регистрация | Задать вопрос |
Заплачу за решение |
Новые сообщения |
Сообщения за день |
Расширенный поиск |
Правила |
Всё прочитано |
|
Опции темы | Поиск в этой теме |
09.05.2011, 17:03 | #1 |
Регистрация: 09.05.2011
Сообщений: 5
|
В заданном текстовом файле подсчитать частоту использования каждого слова из словаря (другого текстового
В заданном текстовом файле подсчитать частоту использования
каждого слова из словаря (другого текстового файла). Нужно решить на С помогите плз !! |
09.05.2011, 17:57 | #2 |
C++
Форумчанин
Регистрация: 27.03.2011
Сообщений: 803
|
Сделал на C++, на C сам переделаешь.
Код:
Ищете информацию по C++?
cplusplus.com |
09.05.2011, 18:02 | #3 |
C++
Форумчанин
Регистрация: 27.03.2011
Сообщений: 803
|
Если нужно, чтобы Print все ровно выводил, переделываешь его так:
Код:
Ищете информацию по C++?
cplusplus.com |
09.05.2011, 19:09 | #4 |
Старожил
Регистрация: 19.08.2009
Сообщений: 2,119
|
на Си делать лень, ибо гемора много, на C++ гораздо легче...
Код:
А вы почему со мной не соглашаетесь, у вас что, импотенция? (c) ACE Valery
|
09.05.2011, 19:35 | #5 |
C++
Форумчанин
Регистрация: 27.03.2011
Сообщений: 803
|
Rififi, да уж, в STL я не силен, так что ваше решение куда лучше получилось :)
Ищете информацию по C++?
cplusplus.com |
Похожие темы | ||||
Тема | Автор | Раздел | Ответов | Последнее сообщение |
Подсчитать количество вхождений в слова первого слова. | 07412 | Общие вопросы C/C++ | 4 | 27.05.2010 12:05 |
Разбить текст на слова и произвести поиск каждого слова по текстовому массиву | Burning_brook | Microsoft Office Excel | 2 | 22.05.2010 01:56 |
Поиск данных в текстовом файле (в самом файле! а не в Memo и не загружая всю инфу из файла в одну строку | glagoff | Помощь студентам | 1 | 05.05.2010 13:00 |
Отсортировать слова в заданном списке по алфавиту. | Nynka | Помощь студентам | 5 | 08.12.2009 00:45 |
Найти (в процентах) частоту появления каждого из m наиболее часто встречающихся элементов | sk1p | Паскаль, Turbo Pascal, PascalABC.NET | 2 | 26.09.2008 23:57 |