如果定义i为10.0j为5.0系统会按什么类型处理?
#include<iostream>
using namespace std;
void fun(int i=10,int j=20,int k=30);
void fun(double i,double j);
int main()
{
fun();
fun(100);
fun(10,101);
fun(100.0,25.0);
return 0;
}
void fun(int i,int j,int k)
{
cout<<i<<","<<j<<","<<k<<endl;
}
void fun(double i,double j)
{
cout<<i<<","<<j<<endl;
}