21 write a c program to remove first occurrence of a

Info icon This preview shows pages 2–3. Sign up to view the full content.

21. Write a C++ program to remove first occurrence of a character from string. 22. Write a C++ program to remove last occurrence of a character from string. 23. Write a C++ program to remove all occurrences of a character from string. 24. Write a C++ program to remove all repeated characters from a given string. 25. Write a C++ program to replace first occurrence of a character with another in a string. 26. Write a C++ program to replace last occurrence of a character with another in a string. 27. Write a C++ program to replace all occurrences of a character with another in a string. 28. Write a C++ program to find first occurrence of a word in a given string. 29. Write a C++ program to find last occurrence of a word in a given string. 30. Write a C++ program to search all occurrences of a word in given string. 31. Write a C++ program to count occurrences of a word in a given string. 32. Write a C++ program to remove first occurrence of a word from string. 33. Write a C++ program to remove last occurrence of a word in given string. 34. Write a C++ program to remove all occurrence of a word in given string. 35. Write a C++ program to trim leading white space characters from given string. 36. Write a C++ program to trim trailing white space characters from given string. 37. Write a C++ program to trim both leading and trailing white space characters from given string. 2
Image of page 2

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

38. Write a C++ program to remove all extra blank spaces from given string. 3
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.
  • Winter '18
  • Zar Zar
  • Array, Character encoding, ASCII, Latin alphabet

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern