Computer Science Canada HELP regarding bitwise operators!!! |
Author: | A.J [ Fri Mar 14, 2008 6:18 pm ] | ||
Post subject: | HELP regarding bitwise operators!!! | ||
why isn't this allowed in C++:
it says invalid operands of types... could someone help? (btw, trans2 is integer type) |
Author: | Saad [ Fri Mar 14, 2008 6:24 pm ] |
Post subject: | RE:HELP regarding bitwise operators!!! |
trans2[1,n+1-i] = trans2[1,n+1-i] | (1 << (n-j)); To access each dimension of an array uses the [] operator, as a result it should be trans[1][n+1-i] rather then [1 , n + 1 - 1] |
Author: | A.J [ Fri Mar 14, 2008 6:31 pm ] |
Post subject: | Re: HELP regarding bitwise operators!!! |
thnx saad. |