Hey, this is a definite noob question here, but I am absolutely stumped. Here's what's happening:
I'm trying to modifying an existing open-source game in C++, and I'm trying to compile a particular application. Problem is, I keep getting the following error message:
k:\old esms source code\league_table.cpp(8) : error C2447: '{' : missing function header (old-style formal list?)
First off, I'll admit that I know next to nothing about C++- I'm basically feeling my way around in the dark, as it were. However, I understand that this particular error message typically means that there is a misplaced semi-colon. This particular example, though, is right at the very beginning of the code, and I can't see any sign of such a semi-colon (maybe I'm missing it).
The program was originally written in C and converted to C++, so perhaps the issue is there.
Here are the relevant lines of code (the full code is 250+ lines long). Any help that could be offered would be appreciated.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
// ESMS - Electronic Soccer Management Simulator
// Copyright (C) <1998-2005> Eli Bendersky
//
// This program is free software, licensed with the GPL (www.fsf.org)
//
#include "league_table.h"
{ bool team_data_predicate(league_table::team_data data1 , league_table::team_data data2)
{
if (data1.points != data2.points)
return data1.points > data2.points;
else
{
if (data1.goal_difference != data2.goal_difference)
return data1.goal_difference > data2.goal_difference;
else
return data1.goals_for > data2.goals_for;
}
}
|