Find the code attached as struct_sort.cpp
There is a pic of sample input as input.png
and a pic of sample output as output.png

How to run
(1) compile and run
(2) then input total number of items
(3) now input name, description, quantity and price for each item.

You are done !! :)

In case of doubt or any further queries-
(1) message me
(2) mail me :