Write a function SORTPOINTS() in C++ to sort an
array of structure Game in descending order of
Points using Bubble Sort.
Jote. Assume the following definition of
structure Game
struct Game
{ long PNo ;//Player Number
char PName[20];
long Points ;
Sample content of the array (before sorting)
PNo
PName
Points
3001
103
104
2819
Ritika Kapur
John Philip
Razia Abbas
Tarun Kumar
101
3451
105
2971
sample content of the array (after sorting)
PNo
PName
Point
101
103
105
104
Rania Abbas
Rubik's kaput
Taryn kumar
John Philip
3451
3001
2971
2819
Answers
Answered by
0
Answer:
Here is u r answer
an
array of structure Game in descending order of
Points using Bubble Sort.
Jote. Assume the following definition of
structure Game
struct Game
{ long PNo ;//Player Number
char PName[20];
long Points ;
Sample content of the array (before sorting)
PNo
PName
Points
3001
103
104
2819
Ritika Kapur
John Philip
Razia Abbas
Tarun Kumar
101
3451
105
2971
Similar questions