藍森林首頁 | 返回主頁 | 本站地圖 | 站內搜索 | 聯繫信箱 |
 您目前的位置:首頁 > 自由軟件 > 技術交流 > 應用編程


    

藍森林 http://www.lslnet.com 2006年6月6日 10:18


c基礎知識之函數型指針

[code]
int a(),b(),c();
int *option[]={
(int *)a,
(int *)b,
(int *)c
};
main(){
(* a)();
(* b)();
(* c)();
}
int b(){
        printf("b");
        return 0;
}
int c(){
        printf("c");
        return 0;
}
int a(){
        printf("a");
        return 0;
}[/code]

c基礎知識之函數型指針

????????



Copyright © 1999-2000 LSLNET.COM. All rights reserved. 藍森林網站 版權所有。 E-mail : webmaster@lslnet.com