Demonstrates the interaction between HumanA, HumanB, and Weapon classes.
[詳解]
#include "HumanA.hpp"
#include "HumanB.hpp"
#include "Weapon.hpp"
#include <iostream>
[ソースコード]
|
int | main () |
| Main function of the program.
|
|
Demonstrates the interaction between HumanA, HumanB, and Weapon classes.
main.cpp に定義があります。
◆ main()
Main function of the program.
Creates instances of HumanA and HumanB, equips them with weapons, and makes them attack to demonstrate their behavior.
- 戻り値
- 0 if the program executes successfully.
main.cpp の 31 行目に定義があります。