Ok, I am setting all elements in the array to 0...
If all elements are 0, i want it to display "No inventory"
if there is something in the element, i want to display only its contents..
Heres the code, how do I make it display No Inventory only when all are 0, not every single 0.
for (int i = 0; i < size; i++)
{
item[i] = 0;
}
for (int j = 0; j < size; j++)
if (item[j] == 0)
cout<<"No Inventory";
else
cout<<item[j]<<endl;
}