could you precise what you want to do with each function? because I don't get the logic: for instance in getTeam, I would expect the function to return an element of the team array, but it actually sets the name of each team, same thing for addTeam, the name suggests that the function adds an element, but in fact it resets the entire array of team...
PS: you should get soon some appropriate advise about fflush(stdin)...