werew301459 » Вт фев 28, 2012 3:11 am
? ????????????,
Christian Louboutin sale?????????? ?????feixiaoxing @163.com?
??????????????????????????,
Coach Outlet Shop Online?????????????????????????????????????????????????????????????????????
typedef struct _Shoe{ int type; void (*print_shoe)(struct _Shoe*);}Shoe; ???????????????????????????
void print_leather_shoe(struct _Shoe* pShoe){ assert(NULL ,
Discount Christian Louboutin!= pShoe); printf("This is a leather show!\n");}void print_rubber_shoe(struct _Shoe* pShoe){ assert(NULL ,
Dr Dre Headphones!= pShoe); printf("This is a rubber shoe!\n");} ??????????????????????????????????????,
UGG Outlet????????
#define LEATHER_TYPE 0x01#define RUBBER_TYPE 0x02Shoe* manufacture_new_shoe(int type){ assert(LEATHER_TYPE == type RUBBER_TYPE == type); Shoe* pShoe = (Shoe*)malloc(sizeof(Shoe)); assert(NULL != pShoe); memset(pShoe, 0, sizeof(Shoe)); if(LEATHER_TYPE == type) { pShoe->type == LEATHER_TYPE; pShoe->print_shoe = print_leather_shoe; } else { pShoe->type == RUBBER_TYPE; pShoe->print_shoe = print_rubber_shoe; } return pShoe;}
Related articles?
http://www.linuxloc.com/forum.php?mod=viewthread&tid=428389&extra=
? ????????????,[url=http://www.christianlouboutin-online.com/]Christian Louboutin sale[/url]?????????? ?????feixiaoxing @163.com?
??????????????????????????,[url=http://www.cheapcoachoutletshop.org/]Coach Outlet Shop Online[/url]?????????????????????????????????????????????????????????????????????
typedef struct _Shoe{ int type; void (*print_shoe)(struct _Shoe*);}Shoe; ???????????????????????????
void print_leather_shoe(struct _Shoe* pShoe){ assert(NULL ,[url=http://www.christianlouboutin-online.com/]Discount Christian Louboutin[/url]!= pShoe); printf("This is a leather show!\n");}void print_rubber_shoe(struct _Shoe* pShoe){ assert(NULL ,[url=http://beatsbydreheadphonesonline.com/]Dr Dre Headphones[/url]!= pShoe); printf("This is a rubber shoe!\n");} ??????????????????????????????????????,[url=http://www.uggclearanceuks.com/]UGG Outlet[/url]????????
#define LEATHER_TYPE 0x01#define RUBBER_TYPE 0x02Shoe* manufacture_new_shoe(int type){ assert(LEATHER_TYPE == type RUBBER_TYPE == type); Shoe* pShoe = (Shoe*)malloc(sizeof(Shoe)); assert(NULL != pShoe); memset(pShoe, 0, sizeof(Shoe)); if(LEATHER_TYPE == type) { pShoe->type == LEATHER_TYPE; pShoe->print_shoe = print_leather_shoe; } else { pShoe->type == RUBBER_TYPE; pShoe->print_shoe = print_rubber_shoe; } return pShoe;}
Related articles?
[url=http://www.linuxloc.com/forum.php?mod=viewthread&tid=428389&extra=]http://www.linuxloc.com/forum.php?mod=viewthread&tid=428389&extra=[/url]