Re: C# or C++ equivalent of VFP (Visual Fox Pro) BITOR by Olaf
Olaf
Sun Feb 12 03:38:26 CST 2006
Hi LvBohemian
>I guess I am missing something...
...
> does not appear to translate to...
> someVar = |(|(<<(3, 13), <<(4, 9)), 0x00000001)
Yes, you are missing that operators work different than functions:
function: function(operand1,operand2)
operator: operand1 operator operand2
Depending on the definition of the function it could sometimes also
translate to the different order of operands:
operator: operand2 operator operand1
for example:
function bitor: bitor(1,2)
operator |: 1|2
+ is an operator you should know, you also don't write +(1,2)
you write 1+2, don't you?
Well, pps showed you.
I thought that hint would be sufficient. As you should have a help
system with c++, c# you could find the rest yourself, with the
help or with google.
Bye, Olaf.