Question
IN c++ I want to make word chain(Type a word to end it). If it does not match the word already entered, check it out.
IN c++
I want to make word chain(Type a word to end it). If it does not match the word already entered, check it out. Exclude duplicate words. If you type end, you end the input and in turn write the words you type
required position
:
1) Input by keyboard and output to monitor
2) Input words are stored in dynamic allocation according to their length.
3) Check well for overlapping words and ending words
4) Must be able to output all input words at the end
5) Maximum number of words that can be input is limited to 100
show like these :
Enter a word: apple
Enter a word: elephant
Enter a word: tiger
Enter a word: rabbit
Enter a word: tiger
#already used!
Enter a word: pineapple
#wrong word!
Enter a word: tomato
Enter a word: end
apple elephant tiger rabbit tomato
**becasue tiger finish R fineapple start F , as a result #wrong word
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started