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;
- using System.Threading.Tasks;
- namespace ConsoleApplication53
- {
- class Program
- {
- struct school
- {
- public int schoolId;
- public string schoolname;
- public string headTeacher;
- public string phoneNumber;
- public int numStudents;
- }
- static school[] schools = new school[20];
- static void Main(string[] args)
- {
- school StCuthberts;
- StCuthberts.schoolId = 0;
- StCuthberts.schoolname = "St Cuthberts";
- StCuthberts.headTeacher = "Mr Thomson";
- StCuthberts.phoneNumber = "01234 567890";
- StCuthberts.numStudents = 1000;
- school Accrington;
- Accrington.schoolId = 1;
- Accrington.schoolname = "Accrington School";
- Accrington.headTeacher = "Mr Jones";
- Accrington.phoneNumber = "01234 564782";
- Accrington.numStudents = 1232;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement