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