[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [PROGRAMMERING] getch = ingenting



Den nemmeste måde at slette en input-buffer på er at skrive:
while( getc(stdin));

Det er ikke nødvendigt med break i den linie, for den udfører kun ; så
længe der er data, altså ingenting.

fflush bruges kun til at tømme output-buffere, og når der skrives fflush
(3) betyder at man skal skrive "man 3 fflush" for at få beskrivelsen.

M.v.h.
Søren H. Sørensen


On Tue, 2006-05-23 at 13:36, Jacob Sparre Andersen wrote:
> Mikkel Meinike Nielsen skrev:
> 
> > 3. Om 'exit' er det udsagn man bruger når man vil forlade et loop og
> > gå til et nyt.
> 
> I C bruger man »break« til at afbryde en løkke og gå videre til den
> første sætning efter løkken.
> 
> Jacob



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2006-06-01, 02:01 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *