[futurebasic] FB equivalent of a C expression?

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 1998 : Group Archive : Group : All Groups

From: Robert Covington <t88@...>
Date: Mon, 8 Jun 1998 07:03:06 -0800
Can someone tell me an FB statement or statements that do the same job of
the "bitwise shift" specifier in "C" which apparently means "multiply" in
FB (something different?)?


In C, for example, 001062>>3 yields 000106, 001062<<3 yields 010620
(according to a reference booklet I have, octal representation of an
integer shown here)

How would I do the same "bitshifts" in FB, assuming that there is a
difference?

Also, for a billion brownie points and my eternal thanks, how might the
below be expressed best in FB statements? I gather it is a FOR/NEXT Loop,
but...whoa..

for(cbase=base+Lrb*i + x;i<k;i++,cbase+=Lrb) *cbase = bytecol


All variable looking things in the above C statement are individual
variables. i,k,base,cbase,*cbase,Lrb,bytecol...

Best I can figure so far :
FOR (Ha!)
*cbase = bytecol
NEXT

Comparison: :)

FutureBasic: GOTO "theKitchen"
             FN GetMeAbeer
C: {*Kitchen;<<Beer};{sayWhat};

Thanks anyone,

Robert Covington