🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.c
Article #660

Re: Struktury w C

#660
From: Marek Kotowski
Date: Wed, 14 Jan 1998 11:15
21 lines
1073 bytes
Piotr Rudziñski wrote:
> a sprobuj tak :
> 
> 
>                 for(n=i;n<=index;n++)
>                         {
>                         firma[n]=firma[n+1];
>                         }
>                 index--;
> 
Jesli index oznacza dlugosc tablicy (co innego moze oznaczac?)
to petla jest zakodowana blednie. Oto wersja poprawna (dobrze
byloby ja tez sprawdzic :-): 

  for(n = i; n < index - 1; n++)
    firma[n] = firma[n + 1];


 Z powazaniem

 Marek Kotowski
Technical Details
Message-ID: <34BC9E50.5052@imm.org.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!news.nask.pl!not-for-mail
References: <34bbcae0.4391914@news.man.lublin.pl> <01bd20d8$c20c9070$8b1b119c@pietrek>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!news.nask.pl!not-for-mail
From: Marek Kotowski <mkot@imm.org.pl>
Newsgroups: pl.comp.lang.c
Subject: Re: Struktury w C
Date: Wed, 14 Jan 1998 12:15:28 +0100
Organization: Instytut Maszyn Matematycznych
Lines: 21
Message-ID: <34BC9E50.5052@imm.org.pl>
References: <34bbcae0.4391914@news.man.lublin.pl> <01bd20d8$c20c9070$8b1b119c@pietrek>
NNTP-Posting-Host: 148.81.238.53
Mime-Version: 1.0
X-Mailer: Mozilla 3.01Gold (Win95; I)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit