Advertisement
Guest User

Untitled

a guest
Oct 7th, 2015
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.89 KB | None | 0 0
  1. private static void CorrectHouses(Butai[] Butas, Butai[] Tinkami, int StartStage,
  2.             int EndStage, int WantedRooms, double WantedPrice, ref int CorrectOnes)
  3.         {
  4.             int AllHouses = 27;
  5.             for (int i=0; i < AllHouses; i++)
  6.             {
  7.                 if (((Butas[0].Numbers[i].RoomNumber + 2) / 3 >= StartStage)&&((Butas[0].Numbers[i].RoomNumber + 2) / 3 <= EndStage)&&
  8.                         (Butas[0].Numbers[i].Rooms==WantedRooms)&&(Butas[0].Numbers[i].Price<=WantedPrice))
  9.                 {
  10.                     Info tinkami = new Info(Butas[0].Numbers[i].RoomNumber, Butas[0].Numbers[i].RoomArea, Butas[0].Numbers[i].Rooms,
  11.                         Butas[0].Numbers[i].Price, Butas[0].Numbers[i].PhoneNumber);
  12.                  Tinkami[CorrectOnes].AddCorrect(tinkami, CorrectOnes);
  13.                  CorrectOnes++;
  14.  
  15.                 }
  16.  
  17.             }
  18.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement