Hey I need to use the GetAsyncKeyState command but it requires windows.h library. Is there any alternative to this command? something like std::cin.get or getch() won't help because it waits for user to input and i need the loop to run continuously.
OnlineGDB is running on a Unix/Linux based server, hence there's no windows.h, which is tied to Microsoft Windows platforms.
Try the solutions suggested here.