one implementation of the exam
This commit is contained in:
17
cpp_module_00/main.cpp
Normal file
17
cpp_module_00/main.cpp
Normal file
@@ -0,0 +1,17 @@
|
||||
# include "Warlock.hpp"
|
||||
|
||||
int main()
|
||||
{
|
||||
Warlock const richard("Richard", "Mistress of Magma");
|
||||
richard.introduce();
|
||||
std::cout << richard.getName() << " - " << richard.getTitle() << std::endl;
|
||||
|
||||
Warlock* jack = new Warlock("Jack", "the Long");
|
||||
jack->introduce();
|
||||
jack->setTitle("the Mighty");
|
||||
jack->introduce();
|
||||
|
||||
delete jack;
|
||||
|
||||
return (0);
|
||||
}
|
||||
Reference in New Issue
Block a user