[ADD] convert number to digits

This commit is contained in:
Sem van der Hoeven
2021-06-11 12:30:47 +02:00
parent 504b97b320
commit 692bb76164
4 changed files with 29 additions and 0 deletions

View File

@@ -270,6 +270,15 @@ namespace scene
collision::CheckCollisions(collision_entities);
update_hand_detection();
std::vector<int> res;
toolbox::GetDigitsFromNumber(1234567890, res);
std::cout << "number 1234567890 in digits: " << std::endl;
for (int i : res)
{
std::cout << i << " , ";
}
std::cout << std::endl;
}
//manages the key input in the game scene