Yeah, it's the reason why I called it a "funny way" - It's not a real solution for the problem
Anyway, I'd already gave up and began to change the function "test" - previously, I didn't want to...
Type: Posts; User: yusaku
Yeah, it's the reason why I called it a "funny way" - It's not a real solution for the problem
Anyway, I'd already gave up and began to change the function "test" - previously, I didn't want to...
Thx for ur information!!
Actually, I got a funny way to solve this problem from the other forum :-)
class CA {
public:
void setA( int num ) { a = num; }
void doSth() {
printf( "A is:...
My program allocated an array of class "CB" (CB* pB = new CB[3];), and then, "pB" will be post to a method as a parameter (void test( CA* pA, int num)). CA is the superclass of CB. So, in function...