No Description

filter.cpp 602B

1234567891011121314151617181920212223
  1. #include "bird.h"
  2. /// \file
  3. /// \fn void FilterBirds(Bird birds[], int N)
  4. /// \~English
  5. /// \brief Funtion that receives an array with birds and only shows
  6. /// the birds that pass a filter.
  7. /// \param birds Array of birds.
  8. /// \param N number of birds.
  9. /// \~Spanish
  10. /// \brief Funcion que recibe un arreglo de pajaros (tipo Bird) y solo demuestra
  11. /// los pajaros que pasan el filtro.
  12. /// \param birds arreglo de pajaros (tipo Bird).
  13. /// \param N numero de pajaros.
  14. void FilterBirds(Bird birds[], int N){
  15. for(int i = 0; i < N; i++){
  16. if(i % 3 == 0)
  17. birds[i].hide() ;
  18. }
  19. }