Question: please help me on this problem, a C++ program using Pointers, Polymorphism, and Memory Allocation. Instructions: Create a boolean function that has a parameter of

please help me on this problem,

a C++ program using Pointers, Polymorphism, and Memory Allocation.

Instructions:

  1. Create a boolean function that has a parameter of type string.
  2. Create two pointers, begin and end
  3. Point begin to the first character of the string and end to the last character of the string
  4. Create a while loop that continues to loop as long as begin and end, dereferenced, has the same value and begin and end are not pointing to the same thing.
  5. If at any point the dereferenced begin and the dereferenced end have different values, the loop should stop and the function will return false.
  6. If the loop can end without returning false, the function should then return true.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!