我试图显示货币汇率,label1
但我不知道我应该输入什么label1.Text =
。所以有人可以指导我吗
String[] arr = new string[2];
arr[0] = "US"
arr[1] = "SG"
Combobox1.Items.AddRange(arr);
Combobox2.Items.AddRange(arr);
在combobox1
和combobox2
double[,] value = new double [2,2];
for(int I =0; I<2; I++)
{
value[0,0] = 1; // basically if I chose Combobox1 US and Combobox2 US the rate is 1;
value[0,1] = 1.24; // US to SG
value[1,0] = 0.80; // SG to US
value[1,1] = 1; // SG to SG
Label1.Text =
}