Question: I need help filling in the codes for this program. C++ LAB: C++/C common string functions part 2: reverse, reverse new strchr strrchr, strncat strstrreplace,
LAB: C++/C common string functions part 2: reverse, reverse new strchr strrchr, strncat strstrreplace, replace str Code and Algorithm Design This lab, based on K and R (aka: THE C PROGRAMMING LANGUAGE by Kemighan 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 (char* q): char reverse_new (const char q) / make a new string that is reversed char strchr_(chars, char c): char strrchr (char s, char c): /I reverse a string in place / find the first occurrence of c find the last occurrence of c .II concatenate up to n characters from t onto the end ofs char strncat (char* s. const char* t. size t n): char replace (char s. char c, char d); I replace all occurrences of c with d char replace str_(char s. char t.char u): .1 replace alt occurrences of substring t with new substring u All of these functions should be imalemented with pointers. Students will also show each of the algorithms using spreadsheets (as in the previous lab). Don't forget to check: when needed. nclude
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
