Create an array of "hw_item" structure and sort it based on its price using selection sort. Each "hw_items" contains its name, description, quantity and price.
Answers
Answered by
0
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 : [email protected]
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 : [email protected]
Attachments:
Similar questions