In using a struct item:
struct item
{
item();
~item();
char * name;
char * effect1;
char * effect2;
char * effect3;
char * effect4;
int count;
};
with the constructor:
item::item()
{
name = NULL;
effect1 = NULL;
effect2 = NULL;
effect3 = NULL;
effect4 = NULL;
count = 0;
}
Hovering over name shows:
char* name() const
while hovering over any of the effects shows:
char* effectx
I am wondering why this is happening as I believe the difference is causing me problems in other areas of my program. Thank you.