S
someone
A.h looks something like:
struct B:C{
size_t x;
D *e();
}
class A{
...............
C *f;
size_t xa;
C *h;
..............
}
Now, inside of A.cpp has the constructor looks like:
A::A(){
h = new B;
}
Now, why is this not a valid statement inisde the constructor ---->
h->x = xa ?
struct B:C{
size_t x;
D *e();
}
class A{
...............
C *f;
size_t xa;
C *h;
..............
}
Now, inside of A.cpp has the constructor looks like:
A::A(){
h = new B;
}
Now, why is this not a valid statement inisde the constructor ---->
h->x = xa ?