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
|
#include <iostream>
#include <fstream>
#include <string>
#include <cstring>
#include <sstream>
#include <vector>
#include <stdio.h>
#include <algorithm>
#include <cstdlib>
using namespace std;
class teams {
private:
char chr1 [8] , chr2 [4] , chr3 [4] ; //variables to store date characters
char Field1 [15]; //holds first team name
char space;
string Field4; //holds second team name
int Field2, Field3; //holds number of goals
public:
teams (char *date ,char *month,char *year,char *HomeName, int &HomeGoal, char &colon, int &AwayGoal, string &AwayName );
teams (){}
//std::string home;
char home [12];
};
teams::teams (char *date ,char *month ,char *year ,char *HomeName , int &HomeGoal, char &colon, int &AwayGoal, string &AwayName ):
chr1 (date), chr2(month) , chr3 (year), Field1 (HomeName), Field2 (HomeGoal), space (colon), Field3 (AwayGoal), Field4 (AwayName)
{}
|