Advertisement
Guest User

Untitled

a guest
Apr 25th, 2018
64
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.  
  3. namespace Parkering_20
  4. {
  5.     class ParkInfo
  6.     {
  7.         private static string[] Parkering = new string[100];
  8.  
  9.         public static void WriteToParkingArray(int Position, string Input)
  10.         {
  11.             Parkering[Position] = Input;
  12.         }
  13.  
  14.         public static int GetParkingSize()
  15.         {
  16.             return Parkering.Length;
  17.         }
  18.  
  19.         public static string[] GetParking()
  20.         {
  21.             return Parkering;
  22.         }
  23.  
  24.         public static void InitialiseParking() //Method to initialise the array
  25.         {
  26.  
  27.             for (int i = 0; i <= (GetParkingSize() - 1); i++)
  28.             {
  29.                 Parkering.Initialize();
  30.             }
  31.         }
  32.  
  33.  
  34.  
  35.         public static void Main(string[] args)
  36.         {
  37.            
  38.             Menu M = new Menu(); //Instanciate the menu object
  39.             M.MenuBuilder();
  40.  
  41.         }
  42.     }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement