sitelogo
put_char/1/2

ストリームに1文字を出力する。

put_char(+文字)
put_char(+ストリーム, +文字)

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.


戻る 続く..
冒頭へ managed with ubiCMS