Question: 3 - Find and Remove in CStrings ( 2 0 points, submit your solution file online before the due date ) . Upload your file

3-Find and Remove in CStrings (20 points, submit your solution file online before the due date). Upload your file named LabPro3.cpp and LabProjk
The purpose of this programming assignment is to practice writing codes for c-strings. In this project, you are NOT ALLOWED e nay C++ string class variable and its member functions
Your Tasks
You will implement functions that allow the user to (1) find a sub-string in another given string and (2) angrove the formatting of a string (All strings are represented as c-strings). Below are the details of the functions you need to write in this project
Subject
Computer Science
Sub-subject
Search And Select
Step-by-
A
The first function is described below
int myFind (const char targetstr, const char substr):
This function takes two parameters targetstr and substr of type char Each of them poum to a costring in memory The function tries to find whether string substr appears in wing targetste if substr is not in targetstr, the function should return 0; For example, 008301) should retum 0, since "abc" cannot be found in a000001" If substr is in targetstr, then the function returns the number of OCCUTTERCK of substr targetstr. For example, should return 2. since "abc" appears twice in "aaabe000abe

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!