![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Apr 2005
Posts: 2
Rep Power: 0
![]() |
#ifndef listB
#define listB
struct nodeB
{
char name[21],
position;
double batAve;
int atBats,
hits;
nodeB* next;
};
class listB
{
public:
listB();
~listB();
bool add(char* nameTok, char* posTok, char* atBatsTok,
char* hitsTok);
void print();
bool print(string name);
private:
nodeB* head;
};
#endifFor some reason I'm getting these errors from the compiler: 16 listB.h parse error before `)' token 14 listB.h an anonymous union cannot have function members 24 listB.h abstract declarator `<anonymous struct>' used as declaration 24 listB.h namespace-scope anonymous aggregates must be static I'm hoping it's just something dumb that I'm missing... ![]() Last edited by Chrono310; Apr 7th, 2005 at 3:43 PM. Reason: Solved |
|
|
|
|
|
#2 |
|
Programming Guru
![]() |
can you post your listb.cpp file as header files you cant compile seperatly :/
|
|
|
|
|
|
#3 |
|
Newbie
Join Date: Apr 2005
Posts: 2
Rep Power: 0
![]() |
Solved
Actually, I figued out the problem. The #declare listB needs to be changed so it isn't the same thing as the class name. I just made it LIST_B, and it doesn't give me that error anymore. Thanks anyway though.
![]() |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|