Supermarket Managemet System/main.cpp
bool CompareUsingRatingDescending( Product FirstProduct, Product SecondProduct)
{
    if(FirstProduct.Rating > SecondProduct.Rating)
        return 1;
    else
        return 0;
}
//Used to Compare products using there rating in descending order
Used to Compare products using there rating in descending order
Used to Compare products using there rating in descending order
bool CompareUsingRatingDescending( Product FirstProduct, Product SecondProduct)
{
    if(FirstProduct.Rating > SecondProduct.Rating)
        return 1;
    else
        return 0;
}
bool CompareUsingRatingDescending ( Product FirstProduct , Product SecondProduct ) { if ( FirstProduct . Rating > SecondProduct . Rating ) return 1 ; else return 0 ; }
Used to Compare products using there rating in descending order
Used to Compare products using there rating in descending order