This is a command function to set the cursors position on the command line using the Windows API based on the two short integers that you pass it. The integers are used to set the values inside of the 'COORD' struct and that struct is used as an argument to the "SetConsoleCursorPosition()" function.
The "system()" function is from the cstdlib header file and it simply relays the text argument that you feed it to the shell that it is running inside of. In this case the text command "cls" is a built in shell command for Microsofts default command line interface. It clears the screen.