Wyświetla mi się błąd:
invalid operands of types 'void' and '<unresolved overloaded="overloaded" function="function" type="type">'
#include <iostream>
using namespace std;
float cale(float c)
{
return c*39.37;
}
float jardy(float j);
void mile(float m)
{
cout<<"3. "<<m*0.0006213;
}
int main()
{
float metry;
cout <<"podaj ile metrow zamienic na 1.cale,2.jardy 3.mile"<<endl;
cin>>metry;
cout<<"1. "<<cale(metry)<<endl;
cout<<"2. "<<jardy(metry)<<endl;
mile(metry)<<endl;
return 0;
}
float jardy(float j)
{
return j*1.0936;
}