Article View: pl.comp.lang.pascal
Article #80356Re: dynamiczna tablica (jeszcze raz)
From: Wiktor S.
Date: Mon, 20 Oct 2003 18:58
Date: Mon, 20 Oct 2003 18:58
24 lines
1352 bytes
1352 bytes
> type Tcos = array [0..MaxLongint] of byte; > Pcos = ^Tcos; > > var el : cardinal; > cos : Pcos; > > begin > el := 100; > getmem(level,el * Sizeof(cardinal)); > cos^[150]:=1; // * > writeln(cos^[150]); // i to pokazuje mi wartosc 1 a powinno np.0, > //zadeklarowalem tylko 100 elementow. > freemem(level,el * Sizeof(cardinal)); > end. > > Co jest zle ? Przydzielasz pamięci levelowi a grzebierz w cosiu. -- Azarien my e-mail address ends in .fm not .fmv
Technical Details
Message-ID:
<bn1b8v$q4t$1@flis.man.torun.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!not-for-mailReferences:
<bn19lb$1l7$1@nemesis.news.tpi.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!not-for-mail From: "Wiktor S." <wswiktor@poczta.fmv> Newsgroups: pl.comp.lang.pascal Subject: Re: dynamiczna tablica (jeszcze raz) Date: Mon, 20 Oct 2003 20:58:28 +0200 Organization: TORMAN Lines: 25 Message-ID: <bn1b8v$q4t$1@flis.man.torun.pl> References: <bn19lb$1l7$1@nemesis.news.tpi.pl> NNTP-Posting-Host: azi.wmc.com.pl Mime-Version: 1.0 X-Trace: flis.man.torun.pl 1066676319 26781 82.160.11.135 (20 Oct 2003 18:58:39 GMT) X-Complaints-To: usenet@man.torun.pl NNTP-Posting-Date: 20 Oct 2003 18:58:39 GMT X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit