Skip to main content

C++ - Move cursor position (windows)

#include "stdafx.h"
#include "Windows.h" 

int main()
{
	for(int i=1 ; i<200 ; i++)
	{ 
		SetCursorPos(200/i, 200*i);
		Sleep(500);
	}
	
	return 0;
}