2个回答
展开全部
#include <iostream>
using namespace std;
int diff(int a, int b) {
return a-b;
}
double diff(double a, double b) {
return a-b;
}
int main() {
int a=34,b=12;
double c=34.56,d=56.34;
cout<<diff(a,b)<<endl;
cout<<diff(c,d)<<endl;
return 0;
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询