P
P
prohoroffff2016-04-10 14:01:46
C++ / C#
prohoroffff, 2016-04-10 14:01:46

Si. How to make it wait for a space?

I want to make the program wait for the space bar to be pressed. It's the gaps. I heard that this is somehow done through getch ()

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rome Great, 2016-04-10
@ok_rf

try
while (getch()!=32) {}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question