Finished the ex06 and the module 01
This commit is contained in:
parent
618ebf8777
commit
7565eabf9b
8 changed files with 244 additions and 4 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/11/06 17:41:03 by rparodi #+# #+# */
|
||||
/* Updated: 2024/11/06 18:11:34 by rparodi ### ########.fr */
|
||||
/* Updated: 2024/11/06 19:43:50 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -38,7 +38,7 @@ void Harl::warning()
|
|||
|
||||
void Harl::complain(std::string level)
|
||||
{
|
||||
std::string categorie[] = {"debug", "error", "info", "warning"};
|
||||
std::string categorie[] = {"debug", "info", "warning", "error"};
|
||||
void (Harl::*choice[4])(void) = { &Harl::debug, &Harl::error, &Harl::info, &Harl::warning };
|
||||
|
||||
for (size_t i = 0; i < 4; i++)
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/11/06 17:37:15 by rparodi #+# #+# */
|
||||
/* Updated: 2024/11/06 17:55:57 by rparodi ### ########.fr */
|
||||
/* Updated: 2024/11/06 19:43:33 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -29,9 +29,9 @@ class Harl
|
|||
void complain(std::string level);
|
||||
private:
|
||||
void debug(void);
|
||||
void error(void);
|
||||
void info(void);
|
||||
void warning(void);
|
||||
void error(void);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
BIN
cpp01/ex05/harl_2.0
Executable file
BIN
cpp01/ex05/harl_2.0
Executable file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue