for the program I'm writing I need to find the location of a specific word inside a string array, but I don't know how. This is the code I made but it doesn't work:

```
 int location;
 string input;

 cout << "Type your name" << endl;
 cin >> input;

  for (int i = 0; i <= count; i++) 
    {
        call_DB[i].name;

    if (call_DB[i].name == input)
        {
            location = i;
        }
    }

```

What is wrong with that code and what can I do to fix it? Thank you.