Football League Program
Ive got a football league program that I made to handle 10 teams. Ive got the 10 teams and it displays the league with 0 for played, won, drawn, lost and points but im having trouble actually adding matches to this? How do i add matches and update the team struct?
My program is here in PDF format.
All that has is the way to enter 10 team names. It shows the results, but they are initially set to all zeroes.
Look for another part of the program to enter the games results.
You will have problem if user enters Manchester United for team. Then you will have two teams, one called Manchester and other called United, which you probably don't want. It happens because %s scans everything until blank space.Try to fix it:
Do you want your program to generate all games, or do you want from user to enter information about game? In each case, you would like to create new function which does that.
Why don't you copy'n'paste your code as plain text and put it between code-tags as everybody else does? Look at Posting Code? Read this first!
Originally Posted by cgod1234
If it is too big, try to reduce it so that it still shows your problem.
Yeah I want the user to input the team scores so then the table updates automatically