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);