Tell us about yourself!

Complete Your Profile
  • BrianG123 commented on cdog204's instructable Creating a Calculator Visual Studio C#2 years ago
    Creating a Calculator Visual Studio C#

    This is the change I made to Click_Subtract/Add/Multiply/DivideThis allows These two forms1+2+3+4+5+6=or1+2=+3=+4=+5=+6=Just two if statements. Adding Parenthesis is the the real challengeExample method:private void Subtract_Click(object sender, RoutedEventArgs e){ if (op1.Length != 0) Enter_Click(sender, e);if (input.Length == 0) input = result.ToString();op1 = input ;operation = '-' ;input = string.Empty ;}

    View Instructable »