i am new to this forum. i am in the process of converting the code from SAS to C++. I am a intermediate C++ developer, and SAS beginner. We have 'COMPRESS' function in SAS which "Returns a character string with specified characters removed from the original string". It seems like removing of all occurrence of some characters from String. How can i do this in C++? here is the sample SAS one line of code, i need to convert it into C++.
if compress(str2) = compress(str1) then valid_rec='N';
how can i write this in C++? I appreciate your help in this regard.