In this code I want to add some products under case 2 ( showall products ) and it must be constant In the program anytime whenthe user chose ( show all products )All products must appear and then the user can chooseanyone
“””””””””””””””””””””””””””””””””””””””””””””””””#include <iostream>#include <string>#include <iomanip>
using namespace std;
//struture to to store product detailsstruct product{
string name;
int quantity;
float price;
};
//Function to show prduct detailsvoid show_products(product products[]){
//Checking is product is not emptyif (products[0].name.empty()){cout << “nYou have not added any product yet.” <<endl;return;}
//Displaying Formated Messagescout << “nnAll Products”;cout <<“n——————————————————————————–n”;cout << left << setw(18) << “ProductNumber”<< left << setw(30) << “Name”<< left << setw(15) << “Quantity”<< left
PayPal Gateway not configured
PayPal Gateway not configured