On windows you have the conio.h library. if I am not mistaken it is possible to use the keyboard arrows on Linux using ncurses.h, but I wanted a more multiplatform solution where the same code would be compiled on several different operating systems not having to change anything (or too little) to work.
Does anyone know a solution to my problem? Something like a function present in the standard C ++ library or a conio.h port for Linux or an ncurses port for windows