hi,
ERROR: request for member `i' in `B:a', which is of non-aggregate type `A *'
What's the problem?
Code:
class A { int i; } class B { A *a; int number; B(A obj){ a=&obj; number=*a.i;//ERROR: } }
What's the problem?
Comment