gets
連続1行入力の基本パターン
getsによる入力の終了はNULLで知る事ができる。
#include <stdio.h>
void main()
{
char s[256];
while ( ( gets( s ) ) != NULL )
puts( s );
}
getsによる入力の終了はNULLで知る事ができる。
Comments