Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 28th, 2012  |  syntax: None  |  size: 1.01 KB  |  hits: 19  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace Like__a_Test4
  7. {
  8.     class Program
  9.     {
  10.         static void Main(string[] args)
  11.         {
  12.             //2007 Q9
  13.             int num, sum=0;
  14.             bool[]a=new bool[318];
  15.             ParkingLot[] p = new ParkingLot[318, 14, a];
  16.             int[] hours = new int[318];
  17.             Console.WriteLine("num");
  18.             num = int.Parse(Console.ReadLine());
  19.             if (num == 1)
  20.                 EnteringViechle(a, hours);
  21.             if (num == 2)
  22.                 sum = ViechleLeaving(a, hours);
  23.             while (num != -1)
  24.             {
  25.                 Console.WriteLine("num");
  26.                 num = int.Parse(Console.ReadLine());
  27.                 if (num == 1)
  28.                     EnteringViechle(p, hours);
  29.                 if (num == 2)
  30.                     sum = sum+ViechleLeaving(p, hours);
  31.             }
  32.             Console.WriteLine("all the money from today: "+sum);
  33.         }
  34.     }
  35. }