變數使用前要先宣告(declaration),C 的extern 關鍵字,用來表示此變數已經在別處 ... //main.c extern int a; //extern一定要加 exter void f();//extern可加可不加 ...
確定! 回上一頁