I have an assignment to create a pointer to an array of structures and than output it. I have 2 structures BIRTHDAY and CLIENT_RECORD. where BIRTHDAY is a part of CLIENT_RECORD.
I create a pointer of class CLIENT_RECORD and point it on the another array CLIENT_ARRAY which is equal to CLIENT_RECORD (it's part of the assignment).
But upon initialization compiler always gives me a mistake. :(
where is my problem? Can somebody give me any idea?
#include <iostream>
#include <cstring>
using namespace std;
You have created a pointer to BIRTHDAY structure and trying to assign it with a CLIENT_RECORD structure object. Instead you have to assign it with the BIRTHDAY structure inside CLIENT_RECORD structure.