How to sort a list of instances of a C++ class
I’m writing a C++ program for a 2D RPG game, using the SDL2 libraries. I have a class named Entity that has a property named worldY:
I’m writing a C++ program for a 2D RPG game, using the SDL2 libraries. I have a class named Entity that has a property named worldY: