how to do bitwise xor in strings? can anyone help me with this...
#include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
string a="1001";
string b="1111";
string c=a^b;
cout << "c: " << c << "\n";
return 0;
}
error:no match for ‘operator^’ (operand types are ‘std::__cxx11::string {aka std::__cxx11::basic_string}’ and ‘std::__cxx11::string {aka std::__cxx11::basic_string}’) string c=a^b;