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 ConsoleApplication1
- {
- class Program
- {
- public struct Tanulo
- {
- public int azon;
- public string nev;
- public string varos;
- public int szulev;
- }
- static void Main(string[] args)
- {
- List<Tanulo> lista = new List<Tanulo>();
- Tanulo t1 = new Tanulo();
- t1.azon = 14;
- t1.nev = "Kiss Béla";
- t1.varos = "Miskolc";
- t1.szulev = 1988;
- lista.Add(t1);
- Console.WriteLine(lista[0].nev);
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement