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
|
int main()
{
int num1, num2, num3, num4, num5, num6;
string team;
ifstream rawdata;
ofstream output("output.dat");
rawdata.open("RawScore.dat");
void ReadInputRecord(int&, int&, int&, int&, int&, int&, string&, ifstream &);
//static int TIME_PENALTY = 1200;
}
void ReadInputRecord(int &num1, int &num2, int &num3, int &num4, int &num5, int &num6, string &team, ifstream &rawdata)
{
while (rawdata >> num1)
{
rawdata >> num2;
rawdata >> num3;
rawdata >> num4;
rawdata >> num5;
rawdata >> num6;
rawdata >> team;
//cout << num1 << num2 << num3 << num4 << num5 << num6 << team << "\n";
}
}
|