This is a decision-making tree write by c++