Define a structure called cricket that will describe the following information:
1. Player_Name
2. Team_Name
3. Batting_Avg
Using cricket declare an array of 50 elements and write a program to read the information about all the 50 players and print a team wise list containing names of players with their batting avg.
Guys I'm stuckd with this team wise printing part.
Say a user entered players of team in this manner
india-india-australia-pakistan-india-pakistan-australia
So I need to print 3 India players thn 2 australia players and than 2 Pak players.
Now a diff user can enter different team name and in different manner
So how shud i sort the array according to team name or simply print it team wise.
Plz help....
1. Player_Name
2. Team_Name
3. Batting_Avg
Using cricket declare an array of 50 elements and write a program to read the information about all the 50 players and print a team wise list containing names of players with their batting avg.
Guys I'm stuckd with this team wise printing part.
Say a user entered players of team in this manner
india-india-australia-pakistan-india-pakistan-australia
So I need to print 3 India players thn 2 australia players and than 2 Pak players.
Now a diff user can enter different team name and in different manner
So how shud i sort the array according to team name or simply print it team wise.
Plz help....