From caa0a26353d4820edc04ebff1f54f9ddd7c17259 Mon Sep 17 00:00:00 2001 From: Yurii Yakovenko Date: Tue, 1 Oct 2024 20:15:33 +0000 Subject: [PATCH] Update cv1/program.c --- cv1/program.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/cv1/program.c b/cv1/program.c index 1b418dc..58f9c68 100644 --- a/cv1/program.c +++ b/cv1/program.c @@ -1,6 +1,7 @@ #include #include #include +#include // bool check(char* s2, char *pz) { @@ -13,7 +14,7 @@ bool check(char* s2, char *pz) { return false; } - char shifer[85]="oizeasbtbq"; + char shifer[15]="oizeasbtbq"; for(int i = 0; s2[i]!='\0'; i++) { @@ -33,10 +34,9 @@ bool check(char* s2, char *pz) } int main() -{ - - char r[3000];//="8ryNd20va P1zza"; - char pizz[990];//="piz"; +{ + char r[300];//="8ryNd20va P1zza"; + char pizz[50];//="piz"; char *p; float price; int count =0; @@ -45,8 +45,7 @@ int main() printf("Zadaj␣jedalny␣listok:\n"); while(1) - { - + { do { p=fgets(r, 299, stdin);