From 7b211e4a7bfff613f6ffea50f6b8c37f015cc17c Mon Sep 17 00:00:00 2001 From: Pavlo Tverdyi Date: Fri, 3 Apr 2020 00:20:53 +0000 Subject: [PATCH] =?UTF-8?q?Aktualizovat=20=E2=80=9Edu4/program.c=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- du4/program.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/du4/program.c b/du4/program.c index f414f9b..a091d06 100644 --- a/du4/program.c +++ b/du4/program.c @@ -49,7 +49,7 @@ for(;eof!=EOF;count++){ eof=getchar(); if(eof==EOF) break; if(eof=='='){ - ro++; + ro=1; } if(!isdigit(eof) && eof!='.' && eof!=' ' && eof!='='){ k++; @@ -60,7 +60,7 @@ for(;eof!=EOF;count++){ } } if(ro==0){ - result[count]=3; + printf("CHYBA\n"); break; } if(eof==EOF) break; @@ -99,3 +99,4 @@ for(;eof!=EOF;count++){ } +