Question: Please, I'm stuck in this c++ code. I just need to fill in the functions. Thank you LAB: C++/C common string functions part 2 reverse,
LAB: C++/C common string functions part 2 reverse, reverse-new-strchr_ strrch, strnca, strstr replace , replace-str Code and Algorithm Design This lab, based on K and R (aka: THE C PROGRAMMING LANGUAGE by Kernighan and Ritchie). is designed to give more practice in working with common C library functions used in C++/C (please refer to Chapter 5.5 when needed, or related sections (marked in the text). char reverse (charq reverse a string in ptace 7 nake a new string that 1s rever tind the first occurrence o tind the last occurrence of char reverse_ new_(const char) char strehr_ (char* s, char c): char strrchr (char* s. char c): . 11 concatenate up to n characters from t onto the end of s char strecat (char s, const chart, size t n): char, strstr (char s, const char t: find the first occurrence of string t in s ar* replace_ (char.s,char c. char d): replace all occurrences of c withd eplace all occurrences of substring t with new substring u r-(char" s. char* t. char* u): All of these functions should be implemented with pointers. Students will also show each of the algorithms using spreadsheets (as in the previous lab), Don't forget to check and needed. #ine luce #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
