Results 1 to 3 of 3

Thread: C# [ ]

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User Svetly-GB's Avatar
    Join Date: Jun:2009
    Location:
    Posts: 8

    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.

  2. #2
    Registered User tedych's Avatar
    Join Date: Nov:2003
    Location:
    Posts: 17,654

    double D = 0.0;
    .
    - if .. else , , .
    ѝ, .
    - ( ),
    E = D + C;
    E .

  3. #3
    Registered User Svetly-GB's Avatar
    Join Date: Jun:2009
    Location:
    Posts: 8
    , tedych!
    .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |