cv1
This commit is contained in:
parent
ef237e9d1f
commit
3e46849fa4
@ -52,15 +52,12 @@ int main(){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
int odpoved = -1;
|
int odpoved = -1;
|
||||||
for(int i = 0; i <= count;i++){
|
for(int i = 0; i <= count && odpoved == -1;;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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user