📄 ch12ex09.pro
字号:
/*
Turbo Prolog 2.0 Chapter 12, Example Program 9
Copyright (c) 1986, 88 by Borland International, Inc
*/
domains
file = myfile
predicates
readloop
goal
write("this program reads your input and writes it to TRYFILE.ONE\n"),
openwrite(myfile, "tryfile.one"),
writedevice(myfile),
readloop,
closefile(myfile),
writedevice(screen),
write("Your input has been transferred to the file tryfile.one").
clauses
readloop:-readchar(X), X<>'#',!, write(X), readloop.
readloop.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -