Question: 3 - Find and Remove in CStrings ( 2 0 points, submit your solution file online before the due date ) . Upload your file
Find and Remove in CStrings points, submit your solution file online before the due date Upload your file named LabProcpp and LabProjk
The purpose of this programming assignment is to practice writing codes for cstrings. 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 find a substring in another given string and angrove the formatting of a string All strings are represented as cstrings Below are the details of the functions you need to write in this project
Subject
Computer Science
Subsubject
Search And Select
Stepby
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 ; For example, should retum since "abc" cannot be found in a If substr is in targetstr, then the function returns the number of OCCUTTERCK of substr targetstr. For example, should return since "abc" appears twice in "aaabeabe
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
