write the program in c++ to define a class called toString with the following data member, class variable str1 and str2 member function get string, compare string, and concatenate String

To be a little kinder than rproffitt (with whom I agree 100% in this sort of case), we DO NOT do your homework for you! Make an effort. Show your code, and the errors you may be getting.

Also, FWIW, I charge $200 USD per hour for consulting services.