Turkce Gta Forumu [TR]

Sitemize Giriş İçin Tıklayın

Join the forum, it's quick and easy

Turkce Gta Forumu [TR]

Turkce Gta Forumu [TR]

Would you like to react to this message? Create an account in a few clicks or log in to continue.

3 posters

    Hesap makinası yapımı

    Sipsi Çakıcı
    Sipsi Çakıcı
    Administratör
    Administratör


    Cinsiyet : Erkek Mesaj Sayısı : 357
    Rep Puanı : 5
    Kayıt tarihi : 22/04/10
    Yaş : 31
    Nerden : İstanbul

    Hesap makinası yapımı Empty Hesap makinası yapımı

    Mesaj tarafından Sipsi Çakıcı Çarş. Haz. 16, 2010 6:14 am

    Basit kodlarla bilgisayardaki hesap makinası yapımını görelim.
    Basit kodlarla bilgisayardaki hesap makinası yapımını görelim.

    [Resimleri görebilmek için üye olun veya giriş yapın.]

    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 hesap_makinası
    {
    public partial class Form1 : Form
    {
    public Form1()
    {
    InitializeComponent();

    }



    double sayi1;
    double sayi2;
    double sayi3;
    char islem;

    private void button10_Click(object sender, EventArgs e)
    {
    textBox1.Text = textBox1.Text + "0";
    }

    private void button7_Click(object sender, EventArgs e)
    {
    textBox1.Text = textBox1.Text + "1";
    }

    private void Form1_Load(object sender, EventArgs e)
    {



    }

    private void button8_Click(object sender, EventArgs e)
    {
    textBox1.Text = textBox1.Text + "2";
    }

    private void button9_Click(object sender, EventArgs e)
    {
    textBox1.Text = textBox1.Text + "3";
    }

    private void button4_Click(object sender, EventArgs e)
    {
    textBox1.Text = textBox1.Text + "4";
    }

    private void button5_Click(object sender, EventArgs e)
    {
    textBox1.Text = textBox1.Text + "5";
    }

    private void button6_Click(object sender, EventArgs e)
    {
    textBox1.Text = textBox1.Text + "6";
    }

    private void button1_Click(object sender, EventArgs e)
    {
    textBox1.Text = textBox1.Text + "7";
    }

    private void button2_Click(object sender, EventArgs e)
    {
    textBox1.Text = textBox1.Text + "8";
    }

    private void button3_Click(object sender, EventArgs e)
    {
    textBox1.Text = textBox1.Text + "9";
    }

    private void button16_Click(object sender, EventArgs e)
    {


    string deger = textBox1.Text;
    textBox1.Text = "";
    sayi1 = Convert.ToInt32(deger);
    islem='+';


    }

    private void button20_Click(object sender, EventArgs e)
    {
    if(sayi2!=null)
    {
    string deger2 = textBox1.Text;
    textBox1.Text = "";
    sayi2 = Convert.ToInt32(deger2);
    if (islem == '*')
    {
    double sonuc = sayi1 * sayi2;
    textBox1.Text = sonuc.ToString();
    }
    if (islem == '+')
    {
    double sonuc = sayi1 + sayi2;
    textBox1.Text = sonuc.ToString();
    }
    if (islem == '-')
    {
    double sonuc = sayi1 - sayi2;
    textBox1.Text = sonuc.ToString();
    }
    if (islem == '/')
    {
    double bolme = sayi1 / sayi2;
    textBox1.Text = Convert.ToString(bolme);
    }
    if (islem == '%')
    {
    double sonuc = sayi1 * sayi2 / 100;
    textBox1.Text = sonuc.ToString();
    }
    }
    }

    private void button17_Click(object sender, EventArgs e)
    {
    double deger = Convert.ToDouble(textBox1.Text);
    double koksonuc = Math.Sqrt(deger);
    textBox1.Text = koksonuc.ToString();
    }

    private void button14_Click(object sender, EventArgs e)
    {
    string deger = textBox1.Text;
    textBox1.Text = "";
    sayi1 = Convert.ToInt32(deger);
    islem = '*';
    }

    private void button15_Click(object sender, EventArgs e)
    {
    string deger = textBox1.Text;
    textBox1.Text = "";
    sayi1 = Convert.ToInt32(deger);
    islem = '-';
    }

    private void button13_Click(object sender, EventArgs e)
    {
    string deger = textBox1.Text;
    textBox1.Text = "";
    sayi1 = Convert.ToInt32(deger);
    islem = '/';
    }

    private void button18_Click(object sender, EventArgs e)
    {
    string deger = textBox1.Text;
    textBox1.Text = "";
    sayi1 = Convert.ToInt32(deger);
    islem = '%';
    }

    private void button25_Click(object sender, EventArgs e)
    {
    textBox1.Text = "";
    }

    private void button24_Click(object sender, EventArgs e)
    {

    }

    private void button11_Click(object sender, EventArgs e)
    {
    double sayi =Double.Parse( textBox1.Text);
    sayi = sayi * -1;
    textBox1.Text = sayi.ToString();
    }

    private void button22_Click(object sender, EventArgs e)
    {

    }
    }
    }

    [Linkleri görebilmek için üye olun veya giriş yapın.]
    D3RS1ML1
    D3RS1ML1
    Süper Moderatör
    Süper Moderatör


    Cinsiyet : Erkek Mesaj Sayısı : 307
    Rep Puanı : 7
    Kayıt tarihi : 27/04/10
    Yaş : 32
    Nerden : Verdiğin Dereden xD :)

    Hesap makinası yapımı Empty Geri: Hesap makinası yapımı

    Mesaj tarafından D3RS1ML1 Çarş. Haz. 16, 2010 8:01 am

    Benim Pc de zaten bu var :D
    Sipsi Çakıcı
    Sipsi Çakıcı
    Administratör
    Administratör


    Cinsiyet : Erkek Mesaj Sayısı : 357
    Rep Puanı : 5
    Kayıt tarihi : 22/04/10
    Yaş : 31
    Nerden : İstanbul

    Hesap makinası yapımı Empty Geri: Hesap makinası yapımı

    Mesaj tarafından Sipsi Çakıcı Çarş. Haz. 16, 2010 2:48 pm

    Herkeste Var Ama Bunu Sen Kodluyorsun Ayrıca Geliştirebilirsin.
    kasttas
    kasttas
    Süper Moderatör
    Süper Moderatör


    Cinsiyet : Erkek Mesaj Sayısı : 61
    Rep Puanı : 0
    Kayıt tarihi : 28/04/10
    Nerden : İndim Derelerine Bilmem Nerelerine xD

    Hesap makinası yapımı Empty Geri: Hesap makinası yapımı

    Mesaj tarafından kasttas Paz Eyl. 12, 2010 12:05 am

    Sipsi Peki Bunu Kodlama Programı Ne?
    Sipsi Çakıcı
    Sipsi Çakıcı
    Administratör
    Administratör


    Cinsiyet : Erkek Mesaj Sayısı : 357
    Rep Puanı : 5
    Kayıt tarihi : 22/04/10
    Yaş : 31
    Nerden : İstanbul

    Hesap makinası yapımı Empty Geri: Hesap makinası yapımı

    Mesaj tarafından Sipsi Çakıcı Paz Eyl. 12, 2010 3:10 am

    c# ile kodluyorsun 

      Forum Saati Çarş. Mayıs 08, 2024 9:27 pm