Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Here's LabTest: #include #include / / You need to create LabProj 3 . h and write the prototypes of the two functions in it #include
Here's LabTest: #include #include You need to create LabProjh and write the prototypes of the two functions in it #include "LabProjh using namespace std; functions to test your program, DO NOT modify void testFindconst char targetStr, const char subStr int res myFindtargetStr subStr; if res cout "String subStr does not appear in string targetStr endl; else cout "String subStr found in string targetStr at res "locations" endl; functions to test your program, DO NOT modify void testImproveFormatchar targetStr cout "The string before improving the format: targetStr endl; improveFormattargetStr; cout "The string after format improvement: targetStr endl; cout endl; int main testFindabbbfd "abc"; testFindBeginingin; testFindMyComputer "put"; testFindDownloado; testFindfriendship "ind"; char str "Ode to Joy"; testImproveFormatstr; char str "Welcome to my class!"; testImproveFormatstr; char str "Remove the redundant blank spaces in this string."; testImproveFormatstr;
Here's LabTest: #include
#include
You need to create LabProjh and write the prototypes of the two functions in
it
#include "LabProjh
using namespace std;
functions to test your program, DO NOT modify
void testFindconst char targetStr, const char subStr
int res myFindtargetStr subStr;
if res
cout "String subStr does not appear in string
targetStr endl;
else
cout "String subStr found in string
targetStr at res "locations" endl;
functions to test your program, DO NOT modify
void testImproveFormatchar targetStr
cout "The string before improving the format: targetStr endl;
improveFormattargetStr;
cout "The string after format improvement: targetStr endl;
cout endl;
int main
testFindabbbfd "abc";
testFindBeginingin;
testFindMyComputer "put";
testFindDownloado;
testFindfriendship "ind";
char str "Ode to Joy";
testImproveFormatstr;
char str "Welcome to my class!";
testImproveFormatstr;
char str "Remove the redundant blank spaces in this
string.";
testImproveFormatstr;
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