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