放在main函数里定义的变量是局部变量,全局变量要放在所有函数(包括main)的外部#include int x,y,z;void year(int a,int b,int c);int main(){ int i,a,b,c;for(i=1;i<=1;i++){ scanf("%d,%d,%d",&a,&b,&c);printf("a=%d\n",a);printf("b=%d\n",b);printf("c=%d...