stdout.write
(もしくはwrite stdout
)を使います。
stdout.write "input: "
let text = readLine stdin
echo "your input text ", text
$ nim c -r sample2.nim
input: foobar
your input text foobar
More than 5 years have passed since last update.
stdout.write
(もしくはwrite stdout
)を使います。
stdout.write "input: "
let text = readLine stdin
echo "your input text ", text
$ nim c -r sample2.nim
input: foobar
your input text foobar
Register as a new user and use Qiita more conveniently