Link to home
Start Free TrialLog in
Avatar of RockBaby
RockBabyFlag for Singapore

asked on

xor operator

hi, i have the following declaration and i am trying to do a xor with the ^ operator. However, i have an error when i perform the operator. can some advice me on it. the code goes like this.

int unsigned int dec = x(dataTSB);
cout<<" new values: "<< dec^dataFSB;

--------------------Configuration: infinity08 - Win32 Debug--------------------
Compiling...
arr.cpp
C:\Documents and Settings\Desktop\try c++\infinity08.cpp(143) : error C2676: binary '^' : 'class std::basic_ostream<char,struct std::char_traits<char> >' does not define this operator or a conversion to a type acceptable to the prede
fined operator
Error executing cl.exe.

infinity08.obj - 1 error(s), 0 warning(s)
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial