#include <string.h>
class ITEM //here i get the error
{
private:
int price;
char name[ 21 ];
int efatr[ 4 ];
public:
void setName( char* newname );
void setPrice( int newprice );
void setAtribut( int x, int ef );
ITEM()
{
name = "Player";
price = 0;
}
~ITEM();
char* getName();
int getPrice();
ITEM_atribut getAtribut();
}
void ITEM::setName( char* newname )
{
strcpy( name, newname );
}
void ITEM::setPrice( int newprice )
{
price = newprice;
}
i get a declaration syntax error at the class
Whats the problem??