Professional Documents
Culture Documents
Minicalculator
Partea I
2
Alegeti BuildBuild Solution (sau F6) ca sa compilati proiectul
3
Proiect C#
Minicalculator
Partea a II-a
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Minicalculator
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
double nr1, nr2;
int operat=0;
string s="";
5
private void produsButton_Click(object sender, EventArgs e)
{
operat = 3;
nr1 = double.Parse(s);
s = "";
textBox.Text = s;
}
}
}
}