Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace Hallgatok
- {
- class tankor
- {
- public static void Main()
- {
- Console.Write("Bevitt diakok szama: ");
- uint Hany = uint.Parse(Console.ReadLine());
- zh.hallgatok[] SokHallgato = new zh.hallgatok[Hany]; // memoriat lefoglaljuk a tombnek
- for (uint i = 0; i < SokHallgato.Length; ++i)
- {
- Console.WriteLine("{}. hallgato adatai:", (i + 1));
- string szak, neptun, osztondij;
- Console.Write("\tSzak: ");
- szak = Console.ReadLine();
- Console.Write("\tNeptun: ");
- neptun = Console.ReadLine();
- Console.Write("Osztondij: ");
- osztondij = Console.ReadLine();
- SokHallgato[i] = new zh.hallgatok(szak, neptun, osztondij); // tenyleges peldanyositunk 1 hallgatot
- Console.WriteLine();
- }
- Console.ReadLine();a
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement