From 2a2b235beb265aea0392bc72d762d668f9ccfb94 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 16 Oct 2025 02:58:06 +0200 Subject: [PATCH] funguje --- du3/program.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/du3/program.c b/du3/program.c index e99e81f..59f088b 100644 --- a/du3/program.c +++ b/du3/program.c @@ -89,18 +89,13 @@ int main() char input[1000]; while (fgets(input,sizeof(input),stdin)!=NULL) { - if((input[0]>='A' && input[0]<='Z') || (input[0]>='a' && input[0]<='z')) + if((input[0]>=0 && input[0]<=47) || (input[0]>=58 && input[0]<=127)) { printf("bad input\n"); return 0; } int flag=switch_operators(input); input[strcspn(input,"\n")]=0; - if (strlen(input)==0 || input[0]==' ') - { - printf("no input\n"); - continue; - } if (flag==0 || flag==-1) { if(flag==-1 && mystack.values[mystack.size-1]==0)