< endl ;\r)\r@ABC\r1001\r1002\r1003\r1004\r2.\r#include <iostream>\rusing namespace std;\rstruct Employee\r{ char name[ 20 ] ;\rchar sex ;\r} J\rvoid fun( Employee *p )\r{ if ( (*p)?sex = MmM)\rcout > (*p)? name > endl ;\r)\rint mainO\rEmployee empL5J = { Liming , m , Wangxiaoping , f , Luwei , m ) ;\rint i ;\rfor( i=0; i<3; i++ )\rfun( emp+i );\r}\r@ABC\rLiming\rLuwei\r3.\r#include <iostream>\rusing namespace std;\rstruct Node\r{ char * s ;\rNode * q ;\r) J.\rint mainO\r{ Node a[ ] = { { "Mary”, a+1 }, { "Jack", a+2 }, { "Jim", a\rNode *p = a ;\rcout << p->s << endl ;\rcout > p->q->s > endl ;\rcout > p->q->q->s > endl ;\rcout > p->q->q->q->s > endl ;\r@ABC\rMary\rJack\rJim\rMary