include<stdio. h>
void Caculate
{
static int iSum=3;
int iTemp;
iTemp= iSum;
iSum= iTemp×3;
printf("% d\n",iSum);
}
int main()
{
Caculate();
Caculate();
return 0;
}
void Caculate
{
static int iSum=3;
int iTemp;
iTemp= iSum;
iSum= iTemp×3;
printf("% d\n",iSum);
}
int main()
{
Caculate();
Caculate();
return 0;
}
iTemp×3不能这么写,改为iTemp*3
方法有括号的()
include<stdio. h>
void Caculate()
{
static int iSum=3;
int iTemp;
iTemp= iSum;
iSum= iTemp*3;
printf("%d\n",iSum);
}
int main()
{
Caculate();
Caculate();
return 0;
}