Advertisement
callumbinner22

Records #2

Dec 15th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.54 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApplication53
  8. {
  9.     class Program
  10.     {
  11.  
  12.         struct team
  13.         {
  14.             public int teamId;
  15.             public string teamname;
  16.             public string manager;
  17.             public string topgoalscorer;
  18.             public string lastyearleagueposition;
  19.         }
  20.  
  21.  
  22.  
  23.  
  24.         static team[] footballteams = new team[20];
  25.         static void Main(string[] args)
  26.         {
  27.             team ManUnited;
  28.             ManUnited.teamId = 0;
  29.             ManUnited.teamname = "Manchester United FC";
  30.             ManUnited.manager = "Jose Mouriniho";
  31.             ManUnited.topgoalscorer = "Sir Bobby Charlton";
  32.             ManUnited.lastyearleagueposition = "5th in Premier League";
  33.  
  34.             team CreweAlex;
  35.             CreweAlex.teamId = 1;
  36.             CreweAlex.teamname = "Crewe Alexandra FC";
  37.             CreweAlex.manager = "Steve Davis";
  38.             CreweAlex.topgoalscorer = "Bert Swindels";
  39.             CreweAlex.lastyearleagueposition = "24th League 1";
  40.  
  41.             team BVB;
  42.             BVB.teamId = 2;
  43.             BVB.teamname = "Borrussia Dortmund";
  44.             BVB.manager = "Thomas Tuchel";
  45.             BVB.topgoalscorer = "Michael Zorc";
  46.  
  47.             team Barcelona;
  48.             Barcelona.teamId = 3;
  49.             Barcelona.teamname = "FC Barcelona";
  50.             Barcelona.manager = "Luis Enrique";
  51.             Barcelona.topgoalscorer = "Lionel Messi";
  52.         }
  53.  
  54.     }
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement