as you know, when using getch() in windows, the applications waits for you until you press a key,
how can i read a key without freezing the program , example :
void main(){
char c;
while(1){
printf("hello
");
if (c=getch()) {
.
.
.
}
}
thank you.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…