Yes. You have
printf
calls there so, since you are using c-style I/O also, you can use :
getchar - C++ Reference[
^] and when you get what you want for input you can output an enter character sequence to get the effect you want. That might be a CR (\r) or an LF (\n) or both. I don't know for sure because I haven't worked with console I/O for quite some time and it could be different for Linux versus Windows.