LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   input (https://www.linuxquestions.org/questions/programming-9/input-122420/)

linuxanswer 12-03-2003 04:55 PM

input
 
how can i wait input from keyboard?If i would run the program after the user press for example enter,....getch?

darthtux 12-04-2003 12:15 AM

What programming language are you referring to?

For example in C you would have something like a printf statement

printf("Please input c to continue\n");
scanf("%d", &option);

scanf would have the terminal wait for the user input and that value would be placed in option. When the user enters c and enter, execution of the program continues.

I hope I understood you correctly.


All times are GMT -5. The time now is 04:26 PM.