gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gm2] Problem with ReadCard


From: Martin Kalbfuß
Subject: Re: [Gm2] Problem with ReadCard
Date: Mon, 08 Mar 2010 20:02:44 +0100

Hi Andreas,

The first number is the user input. The second, the output of the read
number.

The Program stops when ReadCard is called, and wait's for input. I then
enter a number an press Return. The read number is not the one I
entered.



Am Montag, den 08.03.2010, 19:46 +0100 schrieb Fischlin Andreas:
> Sorry Martin,
> 
> Do not understand your question. What does ReadCard really read? Does it read 
> 1 and then WriteCard writes 49 (instead of 1) and in a 2nd execution test 
> reads 2 and outputs 50 (instead of 2)? Or do you call module test twice, i.e. 
> it reads 1 and 49 and then WriteCard writes first 2 (instead of 1) and then 
> 50 (instead of 49). Sorry, dont' get it what you are doing.
> 
> Regards,
> Andreas
>  
> 
> On 08/Mar/2010, at 18:17 , Martin Kalbfuß wrote:
> 
> > Hi,
> > 
> > MODULE test;
> > 
> > VAR n : CARDINAL; 
> > 
> > BEGIN
> > 
> > ReadCard(n);
> > WriteCard(n, 1);
> > WriteLn();
> > 
> > END test.
> > 
> > gives for example
> > 
> > 1
> > 49
> > 
> > or
> > 
> > 2
> > 50
> > 
> > where the first is the repeated, input. What's wrong here?
> > Many thanks,
> > 
> > Martin
> > 
> > 
> > 
> > 
> > _______________________________________________
> > gm2 mailing list
> > address@hidden
> > http://lists.nongnu.org/mailman/listinfo/gm2
> 






reply via email to

[Prev in Thread] Current Thread [Next in Thread]