Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.62 KB | None | 0 0
  1.  //Nauja masyvas sutvarkytas
  2.         static void NaujasMasyvas(Grupe Grup, Grupe nauja, int n, int x)
  3.         {
  4.            
  5.             for (int i = 0; i < n; i++)
  6.             {
  7.                 if (Grup.ImtiStudentas(i).ImtiPazym() > x)
  8.                 //Grup(imam iš konteinerio).ImtiStudentas() (i studentą).ImtiPazym() (is klases pasiimam ką tikrinam)
  9.                 //> x (x sąlyga kurią turi tenkinti, kad patalpint į masyvą)
  10.                 {
  11.                     nauja.DetiStudentas(Grup.ImtiStudentas(i));
  12.                 //naujas masyvas į kurį talpinam atrinktus
  13.                 }
  14.             }
  15.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement