Is there a way to make program respond to certain input at any point of the program?
I have an exercise, where I have to have a possibility to initiate a mass rabbit cull(program itself basically produces structs of bunny information).
It was long time ago, but I remember that AutoIt had had functions to respond to user input at any point of the program, but I couldn't find one for c++, are there any?
★★ Allow the user to hit the 'k' key to initiate a mass rabit cull! which causes half of all the rabits to be killed (randomly chosen).