Facebook
From Thundering Armadillo, 3 Years ago, written in C#.
">

A PHP Error was encountered

Severity: Notice

Message: Trying to access array offset on value of type bool

Filename: view/view.php

Line Number: 33

from

A PHP Error was encountered

Severity: Notice

Message: Trying to access array offset on value of type bool

Filename: view/view.php

Line Number: 33

- view diff
Embed
Download Paste or View Raw
Hits: 203
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Windows.Forms;
  7.  
  8. namespace WindowsFormsApplication10
  9. {
  10.     class AnaSinif
  11.     {
  12.  
  13.             public AnaSinif(){
  14.                     MessageBox.Show("İşlemler Sınıfı");
  15.             }
  16.         struct a{
  17.             public string karakter;// Forma 1 Adet Textbox Konuluıp Bu değer karakter değişkenine Atılacak
  18.                 public int sayi1;// Forma 1 Adet Textbox Konuluıp Bu değer sayi1 değişkenine Atılacak
  19.                 public int sayi2;// Forma 1 Adet Textbox Konuluıp Bu değer sayi2 değişkenine Atılacak
  20.         }
  21.     }
  22.  
  23.  
  24. class Cocuk1 : AnaSinif
  25. {
  26.     private int[,] tamsayi1 = new int[10, 2] {{40,75}, {65,35}, {55,55}, {65,85}, {45,35}, {15,30}, {70,90}, {85,36} {70,63}, {11,25}, {58,48}, {25,84}, {54,35}, {51,12}, {19,91}, {66,63} };        
  27.     private int[,] tamsayi2 = new int[10, 2] {{40,75}, {65,35}, {55,55}, {65,85}, {45,35}, {15,30}, {70,90}, {85,36} {70,63}, {11,25}, {58,48}, {25,84}, {54,35}, {51,12}, {19,91}, {66,63} };
  28.  
  29.     AnaSinif asn = new AnaSinif();
  30.    
  31.         public int globaltoplam = 0;
  32.         public int satır_toplam = 0;
  33.         public int sutun_toplam = 0;
  34.        
  35.  
  36.         public Cocuk1
  37.         {
  38.                 MessageBox.Show(as.karakter.ToString());
  39.         }
  40.         public function hesapla()
  41.         {
  42.                 for (int m = 0; m < 10; m++)  
  43.         {
  44.             int sutun_toplam=0;
  45.             int satır_toplam = 0;
  46.             for (int n = 0; n < 10; n++)
  47.             {
  48.                 satır_toplam += tamsayi1[m, n];
  49.                 sutun_toplam+=tamsayi2[m, n];
  50.             }
  51.            
  52.         }
  53.         }
  54. }
  55.  
  56.  
  57. class Cocuk2:AnaSinif
  58. {
  59.         private int[,] rakamlar = new int[10, 2] {{40,75}, {65,35}, {55,55}, {65,85}, {45,35}, {15,30}, {70,90}, {85,36} {70,63}, {11,25}, {58,48}, {25,84}, {54,35}, {51,12}, {19,91}, {66,63} };
  60.        
  61.         private int[,] A = new int[10, 2] {{40,75}, {65,35}, {55,55}, {65,85}, {45,35}, {15,30}, {70,90}, {85,36} {70,63}, {11,25}, {58,48}, {25,84}, {54,35}, {51,12}, {19,91}, {66,63} };
  62.         private int[,] B = new int[10, 2] {{40,75}, {65,35}, {55,55}, {65,85}, {45,35}, {15,30}, {70,90}, {85,36} {70,63}, {11,25}, {58,48}, {25,84}, {54,35}, {51,12}, {19,91}, {66,63} };
  63.  
  64.         AnaSinif as = new AnaSinif();
  65.         public int toplam = 0;
  66.         public Cocuk2
  67.         {
  68.                 toplam = as.sayi1 + as.sayi2;
  69.                 MessageBox.Show(toplam.ToString());
  70.         }
  71.         public function hesapla()
  72.         {
  73.                 // A nın satır sayısı kadar
  74.                 for (int i = 0; i <= A.GetUpperBound(0); i++)
  75.                 {
  76.                     // B nin sütun sayısı kadar
  77.                     for (int j = 0; j <= B.GetUpperBound(1); j++)
  78.                     {
  79.                         int toplam = 0;
  80.                         // A nın sütun sayısı kadar
  81.                         // (ya da B nin satır sayısı)
  82.                         for (int k = 0; k <= A.GetUpperBound(1); k++)
  83.                         {
  84.                             toplam += A[i, k] * B[k, j];
  85.                         }
  86.                         C[i, j] = toplam;
  87.                     }
  88.                 }
  89.  
  90.         }
  91.         new public function yazdir()
  92.         {
  93.                 Cocuk1 c1 = new Cocuk1();
  94.                 c1.hesapla();
  95.  
  96.                 MessageBox.Show(c1.satır_toplam,c1.sutun_toplam).ToString();
  97.                 MessageBox.Show(hesapla()).ToString();
  98.                 //Ekrana Yazdıran Method
  99.                 MessageBox.Show("Rakamlar");
  100.                 for (int satir = 0; satir < rakamlar.GetLength(0); satir++)
  101.         {
  102.             //Rectangular dizi içindeki sütunlar arasında dönecek döngümüzü oluşturuyorum
  103.             for (int sutun = 0; sutun < rakamlar.GetLength(1); sutun++)
  104.             {
  105.                MessageBox.Show("{0} ", rakamlar[satir, sutun]);
  106.             }
  107.             MessageBox.Show(""); //boş satır
  108.         } // Döngü sonu
  109.         }
  110. }
  111. }
  112.