1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
#include <iostream>
#define TEAMSIZE 22
using namespace std;
struct player
{
int speed;
int acceleration;
int size;
int stamina;
} qb,olt,ort,oe,rb,te,wr1,wr2,rb,c,wr3,Dt,Ilb,olbr,olbl,fs,ss,cr,cl,dt2 de,de2;
player ComparePlayers(player a, player b)
{
player result;
result.speed = a.speed - b.speed;
result.acceleration = a.acceleration - b.acceleration;
result.size = a.size - b.size;
result.stamina = a.stamina - b.stamina;
return result;
}
int main()
{
//Create 2 teams:
player Team1[TEAMSIZE];
player Team2[TEAMSIZE];
//Now compare them like this:
player difference = ComparePlayers(Team1[0] , Team2[0]);
Cout << "This is how the players stack up" << player difference <<;
}
|