Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

can't use windows.h library

0 votes
asked Feb 20, 2022 by Eima (120 points)

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.

1 Answer

0 votes
answered Feb 21, 2022 by Peter Minarik (88,520 points)

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.

Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.