Article View: pl.comp.lang.pascal
Article #327Re: maly problemik...
From: Marcin Rutkowski
Date: Fri, 01 Jan 1999 12:15
Date: Fri, 01 Jan 1999 12:15
21 lines
1785 bytes
1785 bytes
>Wynik byte+1 _ma_ dwa bajty. Dopiero char() lub byte() robi z tego 1 bajt.
>Sprรณbuj :
>
>VAR
> w :word;
myslalem, ze mowimy o jednym bajcie ;-)
> b :byte;
>BEGIN
> b:=255;
> w:=b +1; writeln(w);
> w:=byte(b +1); writeln(w);
>END.
to sprobuj tego:
VAR
w:byte;
{ a dalej tak jak bylo - nie zapomnij wylaczyc "range checking"}
Marcin Rutkowski
marcinru@vc.pl
http://friko.onet.pl/el/marcinru/
Technical Details
Message-ID:
<76ie91$dn$1@korweta.task.gda.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!agh.edu.pl!ict.pwr.wroc.pl!news.task.gda.pl!not-for-mailReferences:
<sbeh2.42854$O1.3168756@news.tpnet.pl> <368612b4.5469610@news.vogel.pl> <368a4473.16668716@news.torun.pdi.net> <36873be3.1947711@news.vogel.pl> <368dc4d9.1184001@news.torun.pdi.net> <368996c4.6865017@news.vogel.pl> <76amcd$g0o$1@korweta.task.gda.pl> <3689f1bb.893896@news.torun.pdi.net> <76asv5$ac6$1@polonez.man.lodz.pl> <368a12df.407004@news.torun.pdi.net> <76chi6$3i3$1@korweta.task.gda.pl> <368f4164.1716131@news.torun.pdi.net> <76dif1$9td$1@polonez.man.lodz.pl> <368d795d.6549947@news.torun.pdi.net> <76fphs$n7m$1@korweta.task.gda.pl> <76fshr$rr4$1@polonez.man.lodz.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!agh.edu.pl!ict.pwr.wroc.pl!news.task.gda.pl!not-for-mail From: "Marcin Rutkowski" <marcinru@mail.onet.pl> Newsgroups: pl.comp.lang.pascal Subject: Re: maly problemik... Date: Fri, 1 Jan 1999 13:15:27 +0100 Organization: CI TASK http://news.task.gda.pl/ Lines: 23 Message-ID: <76ie91$dn$1@korweta.task.gda.pl> References: <sbeh2.42854$O1.3168756@news.tpnet.pl> <368612b4.5469610@news.vogel.pl> <368a4473.16668716@news.torun.pdi.net> <36873be3.1947711@news.vogel.pl> <368dc4d9.1184001@news.torun.pdi.net> <368996c4.6865017@news.vogel.pl> <76amcd$g0o$1@korweta.task.gda.pl> <3689f1bb.893896@news.torun.pdi.net> <76asv5$ac6$1@polonez.man.lodz.pl> <368a12df.407004@news.torun.pdi.net> <76chi6$3i3$1@korweta.task.gda.pl> <368f4164.1716131@news.torun.pdi.net> <76dif1$9td$1@polonez.man.lodz.pl> <368d795d.6549947@news.torun.pdi.net> <76fphs$n7m$1@korweta.task.gda.pl> <76fshr$rr4$1@polonez.man.lodz.pl> NNTP-Posting-Host: ppp160.elblag.tpnet.pl X-Trace: korweta.task.gda.pl 915192929 439 194.204.173.160 (1 Jan 1999 12:15:29 GMT) X-Complaints-To: abuse@task.gda.pl NNTP-Posting-Date: 1 Jan 1999 12:15:29 GMT X-Newsreader: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit