cv1
This commit is contained in:
parent
4137d364b5
commit
ef237e9d1f
@ -54,14 +54,18 @@ int main(){
|
|||||||
int odpoved = -1;
|
int odpoved = -1;
|
||||||
for(int i = 0; i <= count;i++){
|
for(int i = 0; i <= count;i++){
|
||||||
for(int j = 0; j <= strlen(menu[i].name);j++){
|
for(int j = 0; j <= strlen(menu[i].name);j++){
|
||||||
|
int check = 0;
|
||||||
for(int x = 0; x <= strlen(surovina);x++){
|
for(int x = 0; x <= strlen(surovina);x++){
|
||||||
if(surovina[x] != menu[i].name[j]){
|
if(surovina[x] != menu[i].name[j]){
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
check++;
|
||||||
|
if(check == strlen(surovina)){
|
||||||
odpoved = i;
|
odpoved = i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(odpoved == -1){
|
if(odpoved == -1){
|
||||||
printf("chyba");
|
printf("chyba");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user