#include <stdio.h>
void Import(int &pa,int &pb){ scanf("%d %d",&pa,&pb);}
void main(){ int a,b; Import(a,b); printf("%d,%d",a,b);}
谢谢了可为什么我用double类型的时候会出错#include <stdio.h>
void Import(double &pa,double &pb){ scanf("%f %f",&pa,&pb);}
void main(){ double a,b; Import(a,b); printf("%f,%f",a,b);}
void Import(double &pa,double &pb){ scanf("%lf %lf",&pa,&pb);}