main.cpp 1.2 KB

12345678910111213141516171819202122232425262728
  1. /* ************************************************************************** */
  2. /* */
  3. /* ::: :::::::: */
  4. /* main.cpp :+: :+: :+: */
  5. /* +:+ +:+ +:+ */
  6. /* By: bchanot <bchanot@gmail.fr> +#+ +:+ +#+ */
  7. /* +#+#+#+#+#+ +#+ */
  8. /* Created: 2025/07/16 11:45:53 by bchanot #+# #+# */
  9. /* Updated: 2025/07/16 13:15:46 by bchanot ### ########.fr */
  10. /* */
  11. /* ************************************************************************** */
  12. #include "harl.class.hpp"
  13. int main(int ac, char **av) {
  14. std::array<std::string, 4> levels = Harl::getLevels();
  15. Harl harl;
  16. if (ac > 1) {
  17. for (int i = 0; i < 4; i++)
  18. if (levels[i].compare(av[1])) {
  19. harl.complain(av[1]);
  20. return 0;
  21. }
  22. }
  23. std::cout << "[ Probably complaining about insignificant problems ]" << std::endl;
  24. return 0;
  25. }