1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
| program Project1;
{$APPTYPE CONSOLE} {$R *.res}
uses System.SysUtils, uFunc in 'uFunc.pas';
var n: Integer;
begin try Writeln( '[비트 연산 플래그 테스트]' + ##13##10 + '[종류 Type1 = 1, Type1 = 2, Type1 = 3]' + ##13##10 ); while True do begin Writeln('종료 0'); Writeln('플래그 입력 1~7: '); Readln(n);
if n = 0 then Exit; if not( n in [1..7]) then Continue;
Writeln(''); PrintType(n); Writeln(''); end; except on E: Exception do Writeln(E.ClassName, ': ', E.Message); end; end.
|