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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!