Advertisement
Gillito

Untitled

Jun 4th, 2015
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.90 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApplication32
  8. {
  9.     public class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             Journal studentsBase = new Journal();
  14.             Student student = new Student();
  15.             student.firstname = Console.ReadLine();
  16.             student.lastname = Console.ReadLine();
  17.            
  18.         }
  19.     }
  20.  
  21.     class Journal
  22.     {
  23.         List<Student> students;
  24.         Student student = new Student();
  25.  
  26.         private void Addstudent(string studentFname, string studentLname)
  27.         {
  28.             student.firstname = studentFname;
  29.             student.lastname = studentLname;
  30.             students.Add(student);
  31.         }
  32.     }
  33.  
  34.     public class Student
  35.     {
  36.        public string firstname;
  37.        public string lastname;
  38.     }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement