Notes
![]() ![]() Notes - notes.io |
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Vektorel.Ogrenci.App
{
class Program
{
static void Main(string[] args)
{
string[][] mevcutogrenciler = new string[0][];
while (true)
{
Console.WriteLine("Menün1-Öğrenci girişi yap.n2-Öğrenci aran3-Çıkış.");
int secim = Convert.ToInt32(Console.ReadLine());
if (secim == 1)
{
mevcutogrenciler = OgrenciEkleKopyala(mevcutogrenciler);
}
else if (secim == 2)
{
Console.Write("Aranacak veriyi giriniz:");
string ara = Console.ReadLine();
for (int i = 0; i < mevcutogrenciler.Length; i++)
{
for (int j = 0; j < mevcutogrenciler[i].Length; j++)
{
if (mevcutogrenciler[i][j] == ara)
{
Console.WriteLine("Bulunan öğrenci verileri:");
for (int k = 0; k < mevcutogrenciler[i].Length; k++)
{
Console.Write(mevcutogrenciler[i][k]+" ");
}
Console.WriteLine();
}
}
}
}
else if (secim == 3)
{
break;
}
}
}
static string[][] OgrenciEkleKopyala(string[][] mevcutdizi)
{
Console.Write("Kaç öğrenci girilecek:");
int ogr_sayisi = Convert.ToInt32(Console.ReadLine());
string[][] yeniogrenciler = new string[ogr_sayisi][];
Console.Write("Kaç veri girilecek:");
int veri_sayisi = Convert.ToInt32(Console.ReadLine());
string[] veriler = new string[veri_sayisi];
for (int i = 0; i < veriler.Length; i++)
{
Console.Write((i + 1) + ".veriyi giriniz:");
veriler[i] = Console.ReadLine();
}
for (int i = 0; i < yeniogrenciler.Length; i++)
{
yeniogrenciler[i] = new string[veri_sayisi];
}
for (int i = 0; i < yeniogrenciler.Length; i++)
{
for (int j = 0; j < veriler.Length; j++)
{
Console.Write("{0}. öğrenci için {1} değerini giriniz:", i + 1, veriler[j]);
yeniogrenciler[i][j] = Console.ReadLine();
}
}
string[][] sondizi = DiziKopyala(mevcutdizi, yeniogrenciler);
return sondizi;
}
static string[][] DiziKopyala(string[][] anadizi, string[][] yenidizi)
{
string[][] tasiyicidizi = new string[anadizi.Length + yenidizi.Length][];
for (int i = 0; i < anadizi.Length; i++)
{
tasiyicidizi[i] = anadizi[i];
}
for (int i = 0; i < yenidizi.Length; i++)
{
tasiyicidizi[i + anadizi.Length] = yenidizi[i];
}
return tasiyicidizi;
}
}
}
![]() |
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team