d05 ex03 handle weird request as long as they contains form name

This commit is contained in:
Hugo LAMY
2022-03-17 12:01:13 +01:00
parent 5f090531bc
commit e76d67dec7
5 changed files with 50 additions and 28 deletions

View File

@@ -4,6 +4,8 @@
# include "colors.h"
# include <iostream>
# include <string>
# include <algorithm> // trasnform
# include <cctype> // tolower
# include <AForm.hpp>
# include <ShrubberyCreationForm.hpp>
@@ -34,6 +36,8 @@ private:
static AForm * makePresidential(std::string const &target);
static AForm * makeRobotomy(std::string const &target);
bool isValidForm(std::string name, unsigned int i) const;
};
#endif