https://github.com/ionut767/word-counter-cpp
https://github.com/ionut767/word-counter-cpp
cpp file readingfile wordscounter
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ionut767/word-counter-cpp
- Owner: Ionut767
- Created: 2024-05-08T21:44:14.000Z (about 2 years ago)
- Default Branch: Main
- Last Pushed: 2024-05-08T22:00:54.000Z (about 2 years ago)
- Last Synced: 2025-01-17T01:47:06.375Z (over 1 year ago)
- Topics: cpp, file, readingfile, wordscounter
- Language: C++
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:
```bash
git clone https://github.com/Ionut767/word-counter-cpp.git
cd WordCounter
```
2. Compile and run the program:
```bash
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](https://github.com/Ionut767/word-counter-cpp/issues/new) or [create a pull request](https://github.com/Ionut767/word-counter-cpp/pulls).
## 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](https://github.com/Ionut767)