how can i perform bitwise and operation on two binary numbers?
Ex: A-->1101
B-->1011
Then A AND B-->1001
I tried like this but getting compilation error saying that error: request for member 'operator&' in 'bin_celVal', which is of non-class type 'int'
what changes i have to do here?
Qt Code:
int bin_celVal=BinVal(PrCell); int bin_Val=BinVal(Val); int ANDresult= bin_celVal.operator &(bin_Val); cout<<"RESULT:"<<ANDresult<<endl;To copy to clipboard, switch view to plain text mode
Bookmarks