fatal error C1004: unexpected end of file found 执行 cl.exe 时出错.
long fun(int gk);long com(int m,int n);
lnng fun(int gk);
{
long gf=1;
int i;
for(i=1;i<=gk;i++;)
gf=gf*i;
return gf;
}
long com(int m,int n)
{
long gc;
gc=fun(m)/(fun(n)*fun(m-n));
return gc;
}
void main()
{
int n,m;
long c;
printf("please enter two numbers:\n");
scanf("%d,%d",&n,&m);
if(m<n)
c=com(m,n);
else c=com(n,m);
printf("the comb(%d,%d)=%ld",n,m,c);
}