Exemplo n.º 1
0
        public bool Insert(Ogrenci_Bilgi o)
        {
            if (currentSize == maxSize)
            {
                return(false);
            }
            HeapDugumu newHeapDugumu = new HeapDugumu(o);

            heapArray[currentSize] = newHeapDugumu;
            MoveToUp(currentSize++);
            return(true);
        }
Exemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            o                      = new Ogrenci_Bilgi();
            o.Adi                  = textBox1.Text;
            o.Telefon              = Convert.ToUInt32(textBox9.Text);
            o.Adres                = textBox10.Text;
            o.Dogum_tarihi         = textBox4.Text;
            o.e_posta              = textBox7.Text;
            o.Ilgi_Alani           = textBox5.Text;
            o.Ogrenci_No           = Convert.ToUInt32(textBox3.Text);
            o.Uyruk                = textBox6.Text;
            o.Yabanci_dil          = comboBox8.Text;
            o.staj.Sirket_Adi      = textBox14.Text;
            o.staj.departman       = textBox13.Text;
            o.staj.Tarih           = textBox12.Text;
            o.mezun.Bolum_Adı      = comboBox9.Text;
            o.mezun.Not_Ortalama   = Convert.ToSingle(txtnot.Text);
            o.mezun.Tarih          = txttarihh.Text;
            o.mezun.Basari_Belgesi = Convert.ToBoolean(chcbasari.Checked);
            if (comboBox9.Text == "Yazılım Mühendisliği")
            {
                hash.table[0].Deger.Insert(o);
            }
            else
            {
                hash.table[1].Deger.Insert(o);
            }


            ii.Ekle(o);


            MessageBox.Show("Kayıt yapıldı..");

            textBox1.Text  = "ADI";
            textBox9.Text  = "TELEFON";
            textBox10.Text = "ADRES";
            textBox7.Text  = "E-POSTA";
            textBox4.Text  = "DOĞUM TARİHİ";
            textBox3.Text  = "ÖĞRENCİ NO";
            comboBox8.Text = "YABANCI DİL";
            textBox5.Text  = "İLGİ ALANI";
            textBox6.Text  = "UYRUK";
            textBox14.Text = "ŞİRKET";
            textBox13.Text = "DEPARTMAN";
            textBox12.Text = "TARİH";
            comboBox9.Text = "BÖLÜM ADI";
            txtnot.Text    = "NOT ORTALAMASI";
            txttarihh.Text = "BAŞ-BİT TARİHİ";
        }
Exemplo n.º 3
0
        private void Form1_Load(object sender, EventArgs e)
        {
            hash.AddOgrenci(0 * 1, yazılım);
            hash.AddOgrenci(1 * 1, mekatronik);
            o1                      = new Ogrenci_Bilgi();
            o1.Adi                  = "Gülşan";
            o1.Ogrenci_No           = 1123;
            o1.Adres                = "Bolu";
            o1.Dogum_tarihi         = "1997";
            o1.e_posta              = "*****@*****.**";
            o1.Uyruk                = "TC";
            o1.Telefon              = 0545513;
            o1.Yabanci_dil          = "Advanced";
            o1.staj.Sirket_Adi      = "Linovi";
            o1.staj.Tarih           = "2017";
            o1.staj.departman       = "Yazılım";
            o1.mezun.Bolum_Adı      = "Yazılım Mühendisliği";
            o1.mezun.Not_Ortalama   = 95;
            o1.mezun.Tarih          = "2014-2019";
            o1.mezun.Basari_Belgesi = true;
            o1.Ilgi_Alani           = "Kitap okumak";
            o5                      = new Ogrenci_Bilgi();
            o5.Adi                  = "Türkü";
            o5.Ogrenci_No           = 1124;
            o5.Adres                = "Doğan";
            o5.Dogum_tarihi         = "1997";
            o5.e_posta              = "*****@*****.**";
            o5.Uyruk                = "TC";
            o5.Telefon              = 0554502;
            o5.Yabanci_dil          = "Advanced";
            o5.staj.Sirket_Adi      = "Alastyr";
            o5.staj.Tarih           = "2017";
            o5.staj.departman       = "Yazılım";
            o5.mezun.Bolum_Adı      = "Yazılım Mühendisliği";
            o5.mezun.Not_Ortalama   = 85;
            o5.mezun.Tarih          = "2014-2019";
            o5.mezun.Basari_Belgesi = true;
            o5.Ilgi_Alani           = "Müzik Dinlemek";

            hash.table[0].Deger.Insert(o1);
            hash.table[0].Deger.Insert(o5);

            ii.Ekle(o1);
            ii.Ekle(o5);
        }
Exemplo n.º 4
0
        private void button3_Click_1(object sender, EventArgs e)
        {
            Ogrenci_Bilgi o3 = new Ogrenci_Bilgi();

            o3.Ogrenci_No      = Convert.ToUInt32(textBox21.Text);
            o3.Adi             = txtad.Text;
            o3.Adres           = txtadres.Text;
            o3.Yabanci_dil     = txtdil.Text;
            o3.Ilgi_Alani      = txtilgi.Text;
            o3.e_posta         = txtposta.Text;
            o3.Dogum_tarihi    = txttarih.Text;
            o3.Telefon         = Convert.ToUInt32(txttel.Text);
            o3.Uyruk           = txtuyruk.Text;
            o3.mezun.Bolum_Adı = comboBox9.Text;
            ii.Guncelle(o3);

            MessageBox.Show("Güncellendi");
        }
Exemplo n.º 5
0
 private İkiliAramaAgacDugumu GuncelleInt(İkiliAramaAgacDugumu dugum,
                                          Ogrenci_Bilgi anahtar)
 {
     if (dugum == null)
     {
         return(null);
     }
     else if (dugum.veri.Ogrenci_No == anahtar.Ogrenci_No)
     {
         dugum.veri = anahtar;
         return(dugum);
     }
     else if (dugum.veri.Ogrenci_No > anahtar.Ogrenci_No)
     {
         return(GuncelleInt(dugum.sol, anahtar));
     }
     else
     {
         return(GuncelleInt(dugum.sag, anahtar));
     }
 }
Exemplo n.º 6
0
        private void button2_Click_1(object sender, EventArgs e)
        {
            int sayi = Convert.ToInt32(textBox21.Text);

            o2 = ii.Ara(sayi).veri;

            txtad.Text        = o2.Adi;
            txtadres.Text     = o2.Adres;
            txtdil.Text       = o2.Yabanci_dil;
            txtilgi.Text      = o2.Ilgi_Alani;
            txtposta.Text     = o2.e_posta;
            txttarih.Text     = o2.Dogum_tarihi;
            txttel.Text       = o2.Telefon.ToString();
            txtuyruk.Text     = o2.Uyruk;
            txtbastarihi.Text = o2.mezun.Tarih;
            txtbolumadi.Text  = o2.mezun.Bolum_Adı;
            txtortalama.Text  = o2.mezun.Not_Ortalama.ToString();
            checkBox1.Checked = o2.mezun.Basari_Belgesi;
            txtsirket.Text    = o2.staj.Sirket_Adi;
            txtdepartman.Text = o2.staj.departman;
            txtt.Text         = o2.staj.Tarih;
        }
Exemplo n.º 7
0
        public void Ekle(Ogrenci_Bilgi o)
        {
            İkiliAramaAgacDugumu tempParent = new İkiliAramaAgacDugumu();
            İkiliAramaAgacDugumu tempSearch = kok;

            while (tempSearch != null)
            {
                tempParent = tempSearch;
                if (o == tempSearch.veri)
                {
                    return;
                }
                else if (o.Ogrenci_No < tempSearch.veri.Ogrenci_No)
                {
                    tempSearch = tempSearch.sol;
                }
                else
                {
                    tempSearch = tempSearch.sag;
                }
            }
            İkiliAramaAgacDugumu eklenecek = new İkiliAramaAgacDugumu(o);

            //Ağaç boş, köke ekle
            if (kok == null)
            {
                kok = eklenecek;
            }
            else if (o.Ogrenci_No < tempParent.veri.Ogrenci_No)
            {
                tempParent.sol = eklenecek;
            }
            else
            {
                tempParent.sag = eklenecek;
            }
        }
 public HeapDugumu(Ogrenci_Bilgi deger)
 {
     this.Deger = deger;
 }
 public İkiliAramaAgacDugumu(Ogrenci_Bilgi veri)
 {
     this.veri = veri;
     sol       = null;
     sag       = null;
 }
Exemplo n.º 10
0
 public İkiliAramaAgacDugumu Guncelle(Ogrenci_Bilgi anahtar)
 {
     return(GuncelleInt(kok, anahtar));
 }