I have class which looks like
struct Games
{ char Name[80];
char Rating;
bool Played;
long NumberOfKills;
} Unreal, Blizzard[3];
typedef Games* Gamesptr;
int _tmain(int argc, _TCHAR* argv[])
{
int x;
Gamesptr ptr = new Games;
return 0;
}
Now i want to use the struct defined above in another class like below
structTest::structTest(void)
{
}
structTest::~structTest(void)
{
}
void structTest::test(void)
{
// goes here
Games *structptr = new Games;// This not working ....
}
how do i do this ..when I tried it throws me ' no appropriate default constructor available' error...