COMPARE STRINGS TAKING FUNCTION AS PRIVATE FUNCTION
/*PROGRAM TO COMPARE TWO STRINGS BY TAKING STRING COMPARISON FUNCTION AS PRIVATE FUNCTION*/ #include<conio.h> #include<iostream.h> #include<stdio.h> class str_comparison { int i,count1,count2; char a[10],b[10]; void output(); public: void input(); }; void …