void conver(double&, int&);
private: System::Void cb1_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e) {
a=1;
if ((a==1)&&(b2==1))
{if(cb1->Text=="Celsius")
{
input=System::Convert::ToDouble(cel->Text);
if (cb2->Text=="Celsius")
{
choice=1;
conver(input,choice);
}
if(cb2->Text=="Fahrenheit")
}
}
}
I am getting the following error:
Error: function "Project3::MyForm::conver" cannot be called with the given argument list. argument types are: (double, int)
I don't understand what this means. Can't we pass arguments by reference in Visual C++?