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