求救,这条代码怎样理解?
这条代码怎样理解?z->scv.calc((void *)&z->scv);
程序代码:#include
#include
struct _example1 {
void calc(void *);
};
struct _example2 {
struct _example1 scv;
};
void struct _example1 :: calc(void *)
{
// do something
}
int test_function( void )
{
struct _example2 *z;
z = (struct _example2 *) malloc (sizeof(struct _example2));
z->scv.calc((void *)&(z->scv));
// do something
free(z);
return 0;
}
