I have problem with my program. I was looking for answer, but i did't find solution. I created struct and class:
struct Data
{
Client* k;
string msg;
};
class Client
{
public:
string name;
int _id;
}
Then i created table of Data.
Data tab[100];
And when i try get name from some fields in the table, like this:
tab[i].k->name;
I get errors:
C2227 left of "->name" must point to class/struct/union/generic type
C2027 use of undefined type 'Client'