[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: [CPROG] putchar/backspace



On Thu, 8 Jul 1999, Sune Fischer wrote:

> Programmet skriver bare aldrig "Calculating..." før
> udregningen er færdig. Hvis jeg derimod skriver 
> printf("Calculating...\n"); 

fflush(stdout);

> Mit program har også en anden irriterende bug, som jeg
> ved der sikkert findes en simpel løsning på. Jeg har
> en while loop, og i den står et printf og et scanf.
> Første gang loopen kører virker det fint, men anden
> gang kommer printf sætningen to gange i træk, og hvis
> man havde indtastet to cifre ville printet komme tre
> gange osv. Jeg har snakket med en Wirus98 bruger, som
> siger han kalder flushall() for at løse problemet, men
> den ligger selvfølgelig i conio.h.


Vis os noget kode.

-- 
==============================================================================
Erwin Andreasen   Herlev, Denmark <sslug@sslug>          UNIX System Programmer
<URL:http://www.andreasen.org>              <*>         (not speaking for) DDE
==============================================================================



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:07 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] *