Define a structure called Cricket that will describe the following info:
1) Player Name
2) Team name
3) batting average
Using this info. declare an array 'Player' with 10 elements and write a program to read the information about all players. Create team wise list contaiing name of the player with their batting average.
i tried different books asked friends and seniors but no one was able to give solution.
Tha actual problem is sorting names team wise.
I tried with strcmp() and if(p.team_name=='India')
But it didn't work.
Please help me!!