I'm trying to pass a pointer of a class into another class' constructor. I keep getting the error "missing default parameter", here's a hopefully simplified example of what I'm trying to do...
this is in class A, where both classes are first created...
here's how I'm trying to pass it...
if anyone can help me out I'd appreciate it ... I've been stuck on this for a little bit
this is in class A, where both classes are first created...
Code:
m_pClassB = new ClassB(); m_pClassC = new classC( m_pClassB );
here's how I'm trying to pass it...
Code:
constructorClassC( classB *pClassB );
if anyone can help me out I'd appreciate it ... I've been stuck on this for a little bit
Comment