N
nabeel.girgis
When I compile, I get two error messages per member function I defined
in my class declaration. The first error states the function name and
says that it already has a body. While the second error message says
to see previous definition of the function.
Here is an example. These are my constructors declarations and their
corresponding function code:
card ();
card::card()
{
}
card (int face, char csuit);
card::card(int face, char csuit) : rank(face), suit(csuit)
{
}
I copied and pasted these directly from my file. Thanks.
in my class declaration. The first error states the function name and
says that it already has a body. While the second error message says
to see previous definition of the function.
Here is an example. These are my constructors declarations and their
corresponding function code:
card ();
card::card()
{
}
card (int face, char csuit);
card::card(int face, char csuit) : rank(face), suit(csuit)
{
}
I copied and pasted these directly from my file. Thanks.