RockBaby
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;
--------------------Config uration: infinity08 - Win32 Debug--------------------
Compiling...
arr.cpp
C:\Documents and Settings\Desktop\try c++\infinity08.cpp(143) : error C2676: binary '^' : 'class std::basic_ostream<char,st ruct 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)
int unsigned int dec = x(dataTSB);
cout<<" new values: "<< dec^dataFSB;
--------------------Config
Compiling...
arr.cpp
C:\Documents and Settings\Desktop\try c++\infinity08.cpp(143) : error C2676: binary '^' : 'class std::basic_ostream<char,st
fined operator
Error executing cl.exe.
infinity08.obj - 1 error(s), 0 warning(s)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.