cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
How can I skip getch press enter key to
How can I skip getch press enter key to continue with function or command
Dec 20, 2022 at 7:07pm UTC
jNc
(66)
Need to skip getch press enter key with function or terminal command
Dec 20, 2022 at 7:31pm UTC
mbozzi
(3933)
Use an if statement
1
2
if
(! should_skip_getch) x = getch();
Last edited on
Dec 20, 2022 at 7:31pm UTC
Dec 20, 2022 at 7:38pm UTC
jonnin
(11441)
getch is silent, the press enter to continue is usually an indication that you ran it from inside VS without a console open and it has run to completion.
Topic archived. No new replies allowed.