Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2003.10.06;
Скачать: 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 вся ветка

Текущий архив: 2003.10.06;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.012 c
1-18334
BillyJeans
2003-09-23 16:43
2003.10.06
PageControl и ListView...


1-18450
mOOx_
2003-09-19 12:31
2003.10.06
OnChange:=Change;


8-18490
Urvin
2003-06-07 03:03
2003.10.06
Работа с палитрой цветов


3-18269
k_len
2003-09-15 14:36
2003.10.06
Rave Reports


14-18575
wnew
2003-09-17 22:59
2003.10.06
Их общее прошлое - это Древняя Русь.