i can't fix my errors. please help me out...
here's the ITEMTYPE part of my code:
//itemtype.h:::::
#ifndef ITEMTYPE_H_INCLUDED
#define ITEMTYPE_H_INCLUDED
class itemtype
public:
itemtype();
void print()const;
void initialize(int number);
private:
int value;
};
#endif
//itemtype.cpp::::::
#include "itemtype.h"
#include <iostream>
using namespace std;
itemtype::Itemtype() // this is the line where the errors are shown
{
value=0;
}
void itemtype::initialize(int number)
{
value=number;
}
void itemtype::print()const
{
cout<<value<<" ";
}
ERRORS:::::::
line 27: error: ISO C++ forbids declaration of 'Itemtype' with no type [-fpermissive]
line 27:error: no 'int itemtype::Itemtype()' member function declared in class 'itemtype'