ストリームに1文字を出力する。
put_char/1 は、現在出力ストリームに1文字を出力する。.
put_char/2 は、第1引数の名前のストリームに1文字を出力する。
ストリーム 出力テキストストリーム 文字 文字
ストリーム S の内容は abcdefgで、 ストリーム位置は、最後の文字 にあるとする。
| put_char(S, h). | 成功. ストリームSの内容は、abcdefghである。. |
これらの述語は、ISO-Prolog 標準に含まれる。
get_char/1/2, get_code/1/2, peek_char/1/2, peek_code/1/2, put_code/1/2, nl/0/1, current_output/1, set_output/1.
| 冒頭へ |
|