Question: hello, i need help filling in the string functions below i did couple please if i made a mistake to fix them i dont know
hello, i need help filling in the string functions below
i did couple please if i made a mistake to fix them
i dont know hat to do for the others. please help


LAB: C++/C common string functions part 2: reverse_, reverse_new, strchr_, strrchr, strncat, 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 (char" q): .char* reverse_new_(const char* q): // reverse a string in place // make a new string that is reversed // find the first occurrence of c char* strchr_(char* s, char c); . char* strrchr(char* s, char c); find the last occurrence of c // concatenate up to n characters from t onto the end of s .char strncat_(char* s, const char* t, size t n): .char strstr_(char s, const char* t) / find the first occurrence of string t in s .char replace_(char s, char c, char d) / replace all occurrences of c with d . I replace all occurrences of substring t with new substring u char* replace_str_(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: http://www.cplusplus.com and http:/len.cppreference.com when needed. strlen(const char s) en #include #include #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
