This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Defining a double


When I try to compile this code:

class ScoreDistanceRestraints
{
double asdfasdsfa( 0);
};

int main ()
{
return 0;
}

I get three errors that say:

expected identifier before numeric constant
expected ',' or '...' before numeric constant
ISO C++ forbids declaration of 'parameter' with no type
---------------------------------------
Levin, Andrew Michael
Vanderbilt University
Email: andrew.m.levin@Vanderbilt.Edu


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]