Reading information out of a structured array

void findCust(Customer customers[], int array_size)
{
    string first_name, last_name;
    cout << "\nEnter the name of the customer you would like to look up: ";
    cin >> first_name >> last_name;
    for (int i = 0; i < array_size; i++) {

    }
}

Inside the for loop you can run a linear search and just iterate over all the customers and compare them. i.e. Go through the array and for each customers[i].firstname and customers[i].lastname check if they match the first_name and last_name variables.

If they do then call print(customers[i]) which is the function that will print out the given customer. You can have the function's definition be similar to void print(Customer customer) and this can contain all the printing to the stream.