.exe文件出现一个问题导致停止正常工作
#include <stdio.h>#define TARGET_AGE 88
int year1,year2;
int calcyear(int year1);
int main(void)
{
printf("what is born?\n(4位数(年))");
scanf("%d",year1);
year2=calcyear(year1);
printf("%d,%d,%d",year1,TARGET_AGE,year2);
return 0;
}
int calcyear(int year1)
{
return(year1+TARGET_AGE);
}