Rank örneği C#
Rank örneği C#
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 WindowsFormsApplication3
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
string[] []aile = new string[3][];
private void Form1_Load(object sender, EventArgs e)
{
aile[0]=new string[] {"Keskin","Abla","Abi","Kardeş"};
aile[1] = new string[] { "Fatma", "Abi", "Kardeş", "Dede", "Küçük Mehmet" };
aile[2] = new string[] { "Murat", "Ahmet", "Zeynep" };
for (int j = 0; j < 4; j++)
listBox1.Items.Add(aile[0][j]);
for (int j = 0; j < 5; j++)
listBox2.Items.Add(aile[1][j]);
for (int j = 0; j < 3; j++)
listBox3.Items.Add(aile[2][j]);
}
private void button1_Click(object sender, EventArgs e)
{
MessageBox.Show("Aile dizisi " + (aile.Rank).ToString() + " boyutludur.", "Dizinin Rankı");
}
}
}




amacı doğrultusunda çok yararlı içeriğe sahip bir site olmuş. örnek vermeniz de çok işimize yaradı.emeğiniz için teşekkürler