** çҹ繤Դ繢ͧ¹ͧ 觼ҹ繵ͧ繴令Ѻ
ҡ բʹ ;ͤ ԡ سѧ¹¤Ѻ ӡ䢢
١ͧ Ѻ
Ѻ˹ѡ
 

C ͹ _Ţ¡ѧ

㹺͹¹ͧ繡¹ҧҹԵʵѹҧѺ¨ѧ蹷ҧԵʵҹ 㹺¹ҤŢ¡ѧѹѺ

èѧ蹷ҧҹԵʵ鹨еͧ #include ¤Ѻ ǹǡѺŢ¡ѧ pow(x,y);

pow(x,y); 繤㹡äӹdzŢ¡ѧ·
x 繵Ţҹ
y 繵Ţ¡ѧ
繵ͧ˹ x y 令Ѻ С˹繵蹡
ҧҹ
int a.b
a=2;
b=3;
pow(2,3) ӵͺ 2x2x2 = 8
code


ŷ


͸Ժ code
#include
#include // ֧觷ҧҹԵʵҹ
main()
{
float a,n; // ˹繪Դӹǹ
a=2;
n=3;
printf("%f\n\n",pow(a,n)); // ӹdzʴ
}
ҡͧ key Ţŧ仡ö觡ѺҨҡ͹͹ Ѻ


ѺҨҡ keyboard


ѧࡵ㹡¹ѡ¹ẺաѺǹ˭Ѻ code ѧҨѧúäѺ ҡǰҹ Ţ¡ѧ繷ȹ еͧҷҧ¹ѡѺ ͧ¹ٹФѺ code óẺҡ觢

觷ҧҹԵʵѧФѺ 㹺͹仨ʹͤ Шյҧ code 㹡äӹdzҧԵʵẺ¤Ѻ


¹ 24 .. 2554