diff --git a/cv3/program.c b/cv3/program.c index 214f625..03d2f10 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -77,8 +77,10 @@ int main() { char input[20]; while (1) { - if (!fgets(input, sizeof(input), stdin)) { - //printf("no␣input"); + char* a = fgets(input, sizeof(input), stdin); + if (a == NULL){ + //if (!fgets(input, sizeof(input), stdin)) { + printf("no␣input\n"); break; }