我有一个结构体定义是这样的。 typedef struct { int a,b,c; float d,e,f; }UNIT1; typedef struct { int g,h,i; float j,k,l; }UNIT2; typedef struct { UNIT1 unit1; UNIT2 unit2; }ALL; 我有个函数需要操作ALL这个结构体。 void AllStructFunc(void *pMe) { //在这里我内不可以直容接通过pMe去访问结构体的内容 //我需要强制类型转换才可以.但是我为什么要多此一举? ALL *pTemp (ALL *)pMe; } void AllStructFunc(ALL *pMe) { //在这里我可以直接通过pMe去访问结构体的内容 pMe->unit1.a... pMe->unit2.i... }