Write a C++ program that gets two strings from input and stores them in variables such as str1 and str2




Write a C++ program that gets two strings from input and stores them in variables such as str1 and str2. Then you should delete all possible str1 in str2. Note that after deletion of str1 in str2, you need to check again the inclusion of str1 in str2. That means the final printed result at the screen shouldn’t include any str1. 

Str1? ab
Str2? sksaabbkjsdaabbksjkabksjsababaaab
Result? skskjsdksjkksjsaa

Solution-