|
From: Eberhard S. <esc...@ca...> - 2014-11-13 20:50:52
|
One possibility would be
symbolic procedure ask_value u;
begin scalar p,r;
p := setpchar "? ";
prin2 u;
r := xread nil;
return r
end;
Then
ask_value 'x;
would yield
x? 199;
199
Eberhard
On 13/11/14 04:08, Kostas Oikonomou wrote:
> Does Reduce have a "read" command that can get input from the user?
> E.g. so you can say something like
> read("x? ", x), which will prompt for a value for x by printing "x? " on
> the terminal.
>
> Kostas
>
> ------------------------------------------------------------------------------
> Comprehensive Server Monitoring with Site24x7.
> Monitor 10 servers for $9/Month.
> Get alerted through email, SMS, voice calls or mobile push notifications.
> Take corrective actions from your mobile device.
> http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
> _______________________________________________
> Reduce-algebra-developers mailing list
> Red...@li...
> https://lists.sourceforge.net/lists/listinfo/reduce-algebra-developers
|