双长型整数咋定义
#include<stdio.h>int main()
{
int n,i,j,t1=1,m=0; long long int t2=0;//对应报错是error C2632: 'long' followed by 'long' is illegal
scanf("%d",&n);
for(i=1;i<=n;i++)
{
for(j=1,t1=1;j<=i;j++)//最容易遗漏的就是t1=1
{
t1=t1*(-j);
}
t2=t2-t1;
}
printf("%3d %5d\n",n,t2);
}