#include <iostream>
#include <cstdlib>
using namespace std;
struct A {
A *B;
};
struct C{
C*D;
};
int main()
{
A * Z = new A;
C * Y = new C;
Z = Y;
cin.get();
return 0;
}
it says cannot convert Z to Y in assignment.