Skip to content

This C++ program will count each word in a txt file and the median of each line

Notifications You must be signed in to change notification settings

himansu979/WordCounter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WordCounter

This C++ program will count each word in an input txt file and also the median of each line

hbs_word_count.cc

This program will read the input txt file from the directory wc_input and will read each word in to an vector. This will remove the special characters in each word and transform to lowercase. All word are also sorted alphabetically and will print the count of each word. The output file is stored in wc_output/wc_result.txt

hbs_median_count.cc

This program will read the same text file and will count the number of words in each line. The it will calculate the running median as it reads a new line. The output file is stored in wc_output/med_result.txt

About

This C++ program will count each word in a txt file and the median of each line

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published