Update cv1/program.c

This commit is contained in:
Yurii Yakovenko 2024-10-01 20:15:33 +00:00
parent a8bb5d67d2
commit caa0a26353

View File

@ -1,6 +1,7 @@
#include <stdio.h> #include <stdio.h>
#include <ctype.h> #include <ctype.h>
#include <stdbool.h> #include <stdbool.h>
#include <string.h>
// //
bool check(char* s2, char *pz) bool check(char* s2, char *pz)
{ {
@ -13,7 +14,7 @@ bool check(char* s2, char *pz)
{ {
return false; return false;
} }
char shifer[85]="oizeasbtbq"; char shifer[15]="oizeasbtbq";
for(int i = 0; s2[i]!='\0'; i++) for(int i = 0; s2[i]!='\0'; i++)
{ {
@ -33,10 +34,9 @@ bool check(char* s2, char *pz)
} }
int main() int main()
{ {
char r[300];//="8ryNd20va P1zza";
char r[3000];//="8ryNd20va P1zza"; char pizz[50];//="piz";
char pizz[990];//="piz";
char *p; char *p;
float price; float price;
int count =0; int count =0;
@ -45,8 +45,7 @@ int main()
printf("Zadaj␣jedalny␣listok:\n"); printf("Zadaj␣jedalny␣listok:\n");
while(1) while(1)
{ {
do do
{ {
p=fgets(r, 299, stdin); p=fgets(r, 299, stdin);