Difference
i have an simple console based application. my code is as follows
Code:
class Cmyfircls
{
char str[20];
public:
void get_data();
void show_data();
};
Cmyfircls :: get_data()
{
--
--
}
Cmyfircls :: show_data()
{
--
--
}
// now in the main i m declaring
int main()
{
Cmyfircls *obj;
obj=new Cmyfircls();
obj->get_data();
obj->show_data();
return 0;
}
now it is giving me error 'Cmyfircls' : 'class' type redefinition
i have only one class in my application
suggest me the solution.

