Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
6
Task/User-input-Text/PostScript/user-input-text-1.ps
Normal file
6
Task/User-input-Text/PostScript/user-input-text-1.ps
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
%open stdin for reading (and name the channel "kbd"):
|
||||
/kbd (%stdin) (r) file def
|
||||
%make ten-char buffer to read string into:
|
||||
/buf (..........) def
|
||||
%read string into buffer:
|
||||
kbd buf readline
|
||||
2
Task/User-input-Text/PostScript/user-input-text-2.ps
Normal file
2
Task/User-input-Text/PostScript/user-input-text-2.ps
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
%if the read was successful, convert the string to integer:
|
||||
{cvi} if
|
||||
Loading…
Add table
Add a link
Reference in a new issue