I'm trying to convert binary to decimal numbers. The problem is I don't know the code hehe so can you correct my code?
The code below is for decimal to binary, how to change it into Binary to Decimal?
if (textBox3->Text == "")
{
MessageBox::Show("Please Enter a Number", "Binary to Decimal", MessageBoxButtons::OK,
MessageBoxIcon::Information);
textBox3->Focus();
}
else
{
int convertnum = int::Parse(textBox3->Text);
textBox3->Text = System::Convert::ToString(convertnum,2);
textBox4->Text = System::Convert::ToString(convertnum);
}
}