How to code all the items bought

So I need to finish this code. I need to show all the items bought under one category(example:drinks).
The final output should be:

Example:

Items bought:

3 Drinks
4 Fruits and Vegetables
6 Pastries
Total Price: xxxx



#include <iostream>
#include <string>

using namespace std;
int main ()
{
int product;
int item;
int quantity;
char choice;
int Amount;
int Change;
int list;
int TPrice;

menu:
system("cls");
cout<<"---------------------------------------"<<endl;
cout<<" BnF Store"<<endl;
cout<<"---------------------------------------"<<endl;
cout<<"[1] Drinks"<<endl;
cout<<"[2] Snacks"<<endl;
cout<<"[3] Fruits and Vegetables"<<endl;
cout<<"[4] Meat, Poultry and Fish"<<endl;
cout<<"[5] Pastry"<<endl;
cin>>product;

if(product==1)
{
system("cls");
cout<<"[1] Soda P450"<<endl;
cout<<"[2] Drinking Water P100"<<endl;
cout<<"[3] Liqour P1250"<<endl;
cout<<"[4] Fruit Shakes P328"<<endl;
cout<<"[5] Juice P250"<<endl;
cin>>item;

if(item==1)
{
system("cls");
cout<<"How many Soda are you buying?"<<endl;
cout<<"Enter Quantity:";
cin>>quantity;

buyagain:
cout<<"Do you want to buy another item?"<<endl;
cout<<"[y] YES [n] NO :";
cin>>choice;
TPrice = 450 * quantity;

if(choice=='y'||choice=='Y')
{
system("cls");
goto menu;
}

else if(choice=='n'||choice=='N')
{
system("cls");
//list items bought
pay:
cout<<"Enter Amount: ";
cin>>Amount;
Change = Amount - TPrice;

if(Change<0)
{
system("cls");
cout<<"Your Payment is insufficeint"<<endl;
goto pay;

}

else
{
cout<<"Change: "<<Change<<endl;
cout<<"THANK YOU!";
}
}
}
if(item==2)
{
system("cls");
cout<<"How many Drinking Water are you buying?"<<endl;
cout<<"Enter Quantity:";
cin>>quantity;

buyagain:
cout<<"Do you want to buy another item?"<<endl;
cout<<"[y] YES [n] NO :";
cin>>choice;
TPrice = 100 * quantity;

if(choice=='y'||choice=='Y')
{
system("cls");
goto menu;
}

else if(choice=='n'||choice=='N')
{
system("cls");
//list items bought
pay:
cout<<"Enter Amount: ";
cin>>Amount;
Change = Amount - TPrice;

if(Change<0)
{
system("cls");
cout<<"Your Payment is insufficeint"<<endl;
goto pay;

}

else
{
cout<<"Change: "<<Change<<endl;
cout<<"THANK YOU!";

}
cout<<endl;
system("pause");
return 0;

}
Please edit your post to include [code][/code] tags around the code (use the <> format icon on the right).

Topic archived. No new replies allowed.