+ 1

How can I take user input without pressing enter on Code Blocks

I'm doing this project in C++, it's a Restaurant Database, and how im using a loop to take the input, there's no limit for the input. So how can I sumbit an input without having to press enter in codeblocks. Here's the link: https://code.sololearn.com/cSFdLabsUAH8/#cpp

13th Nov 2020, 10:16 PM
Elier Fajardo
Elier Fajardo - avatar
3 Respostas
+ 2
There is a way to do it...but it uses getche() (or getch()) from the non-standard <conio.h> header file. Bare in mind I'm an amateur and just "playing around" in programming and don't understand the implications of using non-standard c/c++ header files. I've had a go and did get it to work in my IDE..
14th Nov 2020, 12:24 AM
rodwynnejones
rodwynnejones - avatar