one implementation of the exam
This commit is contained in:
20
cpp_module_01/main.cpp
Normal file
20
cpp_module_01/main.cpp
Normal file
@@ -0,0 +1,20 @@
|
||||
#include "Warlock.hpp"
|
||||
#include "Fwoosh.hpp"
|
||||
#include "Dummy.hpp"
|
||||
|
||||
int main()
|
||||
{
|
||||
Warlock richard("Richard", "the Titled");
|
||||
|
||||
Dummy bob;
|
||||
Fwoosh* fwoosh = new Fwoosh();
|
||||
|
||||
richard.learnSpell(fwoosh);
|
||||
|
||||
richard.introduce();
|
||||
richard.launchSpell("Fwoosh", bob);
|
||||
|
||||
richard.forgetSpell("Fwoosh");
|
||||
richard.launchSpell("Fwoosh", bob);
|
||||
delete fwoosh;
|
||||
}
|
||||
Reference in New Issue
Block a user