Вниз
Скачать: CL | DM;

биты в Integer   Найти похожие ветки 

← →
Anatoly P   (2003-09-23 18:37) [0]

Как узнать значения 1-го, 2-го... бита в переменной Integer, и -ссоответственно изменить.


← →
willys ©   (2003-09-23 18:41) [1]

and or xor not shl shr + F1


← →
Skier ©   (2003-09-23 18:43) [2]

function BitIsOn(AValue : Integer; ABit : Byte) : Boolean;
begin
Result := (AValue and (1 shl ABit)) <> 0;
end;

function TurnBitOn(AValue : Integer; ABit : Byte) : Integer;
begin
Result := (AValue or (1 shl ABit));
end;



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.012 c
14-18569
Samael6
2003-09-18 15:50
2003.10.06
MSDN


1-18462
SergP
2003-09-23 21:51
2003.10.06
Не печатается отчет (TQuickRep). В чем дело?


6-18509
AVC
2003-08-08 14:40
2003.10.06
Домен su


3-18280
Alek_1
2003-09-16 01:32
2003.10.06
Как создать трригеры в FireBird???


1-18312
Abikos
2003-09-23 20:09
2003.10.06
функция обратная StrToHex




   Наверх