[转载] C problem# Unix - 噫吁兮,危乎高哉
w*s
1 楼
【 以下文字转载自 Programming 讨论区 】
【 原文由 windows 所发表 】
anybody knows what is the counter function of "getch()" in unix C?
getchar() works both in dos and in unix, but you have to RETURN after
input a character (which I don't like). There're some other functions,
like kbhit(), bioskey(), but they're all DOS version and can't be used
in Unix.
anybody give me some hints? 3x a lot.
BTW:
I'm using cc under Solaris8 (?).
【 原文由 windows 所发表 】
anybody knows what is the counter function of "getch()" in unix C?
getchar() works both in dos and in unix, but you have to RETURN after
input a character (which I don't like). There're some other functions,
like kbhit(), bioskey(), but they're all DOS version and can't be used
in Unix.
anybody give me some hints? 3x a lot.
BTW:
I'm using cc under Solaris8 (?).