Question
You are not allowed to use built-in functions and strings only use user define functions: Write a C++ program in which you need to create
You are not allowed to use built-in functions and strings only use user define functions: Write a C++ program in which you need to create a 2D Matrix. Total No of Rows given at the beginning of the file. After that you need to calculate the size of number of col for each row. Now create a matrix and populate the character data in it given in text file. Now ask user to enter a substring to find in the given matrix. If substring found print the starting and ending Row and col no of that substring.
Note: Might be there are multiple occurrences. Text file 5 a b c d e B c D A B A a a Z z A a c A q S a B Enter Substring Aa Found at Row 2 starting col 2 ending col 3 Found at Row 3 starting col2 ending col 3.
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