equal
deleted
inserted
replaced
7 |
7 |
8 int cross_getch () |
8 int cross_getch () |
9 { |
9 { |
10 int ch = -1; |
10 int ch = -1; |
11 |
11 |
12 while (!kbhit ()) { |
12 ch = getch (); |
13 ch = getch (); |
|
14 } |
|
15 |
13 |
16 return ch; |
14 return ch; |
17 } |
15 } |
18 |
16 |
19 #else |
17 #else |