Skip to content

Ionut767/word-counter-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Word Counter in C++

Introduction

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.

Key Features

  • 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 ','.

How to Run

  1. Clone the repository:
git clone https://github.com/Ionut767/word-counter-cpp.git
cd WordCounter
  1. Compile and run the program:
g++ wordcount.cpp -o a.out
./a.out

Conclusion

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.

How to Contribute

If you want to contribute to this project or imporve it, please feel free to open an issue or create a pull request.

This is my first C++ project posted on GitHub. I learned a lot from it. I hope it helps you!

Project made with ♥ by Ionut767

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages