#include //#include #include //strcmp 文字列比較関数 int main(void) { char str[256]; /* do { scanf("%s", str); }while(strcmp(str, "out")); */ //EOF => End of File //Windowsとかの標準入力の時はCtrl+DでEOFを発射 while(scanf("%s", str) != EOF) { printf("文字配列str = %s\n", str); } printf("おそと\n"); return 0; }