Skip to content

About

C++ program to count consecutive repeated words

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Consecutive Repeated Words Counter

A simple C++ program that detects consecutive repeated words in an input stream.

Features

  • Detects consecutive repeated words.
  • Counts the total number of consecutive repetitions.
  • Counts repetitions for each repeated word.

Requirements

  • A C++ compiler, such as g++.

Compile

g++ RepeatedWords.cpp -o Source

Run

To read input from salam.txt and save the output to output.txt:

./Source < salam.txt > output.txt

To display the output in the terminal instead:

./Source < salam.txt

Files

  • RepeatedWords.cpp — C++ source code.
  • salam.txt — Sample input file.
  • README.md — Project documentation.

Author

Created by MrBaji.

About

C++ program to count consecutive repeated words

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages