This repository contains a simple and efficient word counter written in C++. It reads a text file, counts the frequency of each word, and outputs the results to another text file.
- Efficient Word Counting: The program reads through the text file and counts the frequency of each word.
- Case Insensitive: The word counting is case insensitive, meaning 'Word' and 'word' are considered the same.
- Special Character Handling: The program correctly handles special characters like '!', '?', '.', and ','.
- Clone the repository:
git clone https://github.com/Ionut767/word-counter-cpp.git
cd WordCounter
- Compile and run the program:
g++ wordcount.cpp -o a.out
./a.out
This program is a simple and efficient word counter written in C++. It reads a text file, counts the frequency of each word, and outputs the results to another text file. Some improvements can be made, such as case-insensitive word counting, special character handling, and more.
If you want to contribute to this project or imporve it, please feel free to open an issue or create a pull request.
Project made with ♥ by Ionut767