摘要: 在g++环境下如果想用getch(等待输入)可以自己写个,因为g++没有<conio.h>头文件。网上找的,还没看懂。/*AUTHOR: zobayerINSTRUCTION:just make this file a header like "conio.h"and use the getch() and getche() functions.*/#include <termios.h>#include <unistd.h>#include <stdio.h>/* reads from keypress, doesn' 阅读全文
posted @ 2012-02-23 17:13 微醺 阅读(314) 评论(0) 推荐(0) 编辑