So i have written a code that should in theory give discounts to various people depending on who they are (pensioners, students and other) however when i try tonrun my code i keep getting errors saying that there is no match for the '==;. I am very confused as to why this is and if any kind person could explain it to me i would be very grateful.
Also would someone mind checking my code for me and seeing if it is correct as it is for an assignment.
There's no standard == operator that compares a std::string to a char.
What is it that you actually want your user to input? The prompt asks them to enter "yes" or "no", and reads their input as a std::string. However, your code then seems to assume they've entered a single character 'y' or 'n'.