diff options
Diffstat (limited to 'cpp04/ex00/main.cpp')
| -rw-r--r-- | cpp04/ex00/main.cpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/cpp04/ex00/main.cpp b/cpp04/ex00/main.cpp new file mode 100644 index 0000000..9c17e99 --- /dev/null +++ b/cpp04/ex00/main.cpp @@ -0,0 +1,30 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* main.cpp :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/04/13 20:47:34 by charles #+# #+# */ +/* Updated: 2020/04/13 20:57:19 by charles ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#include "Sorcerer.hpp" +#include "Victim.hpp" +#include "Peon.hpp" + +int main() +{ + Sorcerer robert("Robert", "the Magnificent"); + + Victim jim("Jimmy"); + Peon joe("Joe"); + + std::cout << robert << jim << joe; + + robert.polymorph(jim); + robert.polymorph(joe); + + return 0; +} |
