Question
Hi, I am very new at C++ and this is a program I cant figure out. Any help would be much appreciated. Given a 10x10
Hi, I am very new at C++ and this is a program I cant figure out. Any help would be much appreciated.
Given a 10x10 array of letters, and an additional word, print out a second array with copies of the word retained, and the remainder of the letters converted to dot characters. Copies are considered to go from left to right, top to bottom, and diagonally from top left to bottom right.
Sample Program Run:
Enter a 10 x 10 array of characters:
abcdefghij
goalsfghij
obcdefghij
abcdggghij
bcdeoghij
sbcdeaahij
abcdelleij
abcdesghsj
abcdefghij
abcdefghij
Enter a word to find: goals
..........
goals.....
o.........
a...gg....
l....o....
s....aa...
.....l.l..
.....s..s.
..........
..........
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