So i've come up with his code and i'm not sure how to continue with the delete function? : <p>I have to delete a drink from the database using the id the user enters.. so how should i continue? I'm not sure what to write inside the if condition?</p>

<pre><code>class Drink{
private:
float cost;
char product_id[10];
char dname[30];
int numDrink;
public:    
void addDrink(char drinkname[],float price,char id[]); 
void delDrink(char drinkname[],char id[]);
//void updateItem();
//void searchItem();
};
Drink drinkBase[100];
void Drink::addDrink(char drinkname[],float price,char id[])
{

 strcpy(drinkBase[numDrink].dname,drinkname);
 strcpy(drinkBase[numDrink].product_id,id);
 drinkBase[numDrink].cost = price;
 cout&lt;&lt;"\nItem inserted successfully!"&lt;&lt;endl;
 numDrink++;
 }
 void Drink::delDrink(char drinkname[],char id[])
 {
 int i;
 for(int i=0;i&lt;numDrink;i++){
    if((strcmp(drinkname,drinkBase[i].dname)==0)&amp;&amp; 
 (drinkBase[i].product_id=id))
    {

        cout&lt;&lt;"\nItem deleted successfully";
        return;
    }
 }

 }
</code></pre>
