scanf("%d",&temp1);scanf("%d",&temp2);scanf("%d",&temp3); scanf("%d%d%d",&temp1,&temp2,&temp3); 尽量避免使用第一句,改用第二句.