Re: Need Help In a C Program...Plz Help Me Out
This is a crude solution.
Maintain a flag array say is_printed[MAX_SIZE].
Initially all entries in the array are 0.
When a particular team player name is printed the corresponding index in the is_printed[] array is made 1.
Ex: ind-aus-pak-ind-aus-aus-pak = 7 players
Before printing any : is_printed[] = {0,0,0,0,0,0,0}
After printing ind players: is_printed[] = {1,0,0,1,0,0,0}
Now, during the second iteration, when you need to print the aus players, do a check on the is_printed array and skip the structure for the index having a 1 in the is_printed array. i.e you'll skip the 0th nad the 3rd structure.
__________________
BE YOURSELF 
http://everythingoutthere.co.cc
|