Results 1 to 3 of 3
Thread: C# [ ]
Hybrid View
-
2nd June 2009 14:13 #1
C# [ ]
!
, C# [ ,
]. , "": Windows Form , - "A","B" "C", "" "B". - "D", "D" "C" "E", .
TextBOX- Button. , Button-:
----------------------------------------------------------------------
try
{
double A = double.Parse(textBox1.Text);
double B = double.Parse(textBox2.Text);
double C = double.Parse(textBox3.Text);
if (A > B)
{
double D = A;
}
else
{
double D = B;
}
double E = D + C;
textBox4.Text = E.ToString();
}
catch (FormatException)
{
MessageBox.Show("");
}
----------------------------------------------------------------------
"D". (Visual C# 2008 Express) "The Name 'D' Does Not Exist In The Current Context".
:
- , ;
- C#, - http://msdn.microsoft.com. , "".
!Last edited by Svetly-GB; 2nd June 2009 at 14:19.
-
2nd June 2009 14:37 #2
double D = 0.0;
.
- if .. else , , .
ѝ, .
- ( ),
E = D + C;
E .
-
2nd June 2009 14:46 #3




Reply With Quote
.

Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in