Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace ex04p28
- {
- class HoursTable
- {
- private Course[,] table;
- public string getTeacherNo(string x)
- {
- for (int d = 0; d < table.GetLength(0); d++)
- {
- for (int h = 0; h < table.GetLength(1); h++)
- {
- if (table[d, h].getCourseNo() == x)
- {
- return table[d, h].getTeacherNo();
- }
- }
- }
- return "";
- }
- public void printStudentsId(String teacherNo, int day)
- {
- for (int h = 0; h < table.GetLength(1); h++)
- {
- if (table[day, h].getTeacherNo() == teacherNo)
- {
- // print student id's
- table[day, h].printStudents();
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement