Exemple #1
0
        static void Main(string[] args)
        {
            int    id     = 0;
            double gpa    = 0.0;
            int    choice = 0;
            string lname  = "";
            string fname  = "";
            string major  = "";



            Greeting();
            IWCCStudent[] students = new IWCCStudent[4];
            for (int i = 0; i < students.Length; i++)
            {
                GetInfo(out lname, out fname, out major);
                id          = GetId();
                gpa         = GetGpa();
                students[i] = new IWCCStudent(lname, fname, major, id, gpa);
            }
            do
            {
                DisplayMenu();
                choice = GetChoice();
                DoChoice(students, choice);
            } while (choice != 4);
        }
Exemple #2
0
 public static void PrintStudent(IWCCStudent stu)
 {
     WriteLine(stu);
 }