![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C语言
RYAN-LZ
方向:计算机视觉
展开
-
C/C++设置光标在控制台的位置
C/C++设置光标在控制台的位置代码void SetPosition(int x,int y){ HANDLE winHandle;//句柄 COORD pos = {x,y}; winHandle = GetStdHandle(STD_OUTPUT_HANDLE); //设置光标位置 SetConsoleCursorPosition(w原创 2018-01-28 16:49:07 · 7194 阅读 · 0 评论 -
C语言方向键
C语言方向键代码//获取按键 void key_press(){ int key; while(key = getch()) { switch(key) { case 0xE0: switch(key = getch()) {原创 2018-01-28 16:59:02 · 3760 阅读 · 1 评论 -
C语言控制台文字颜色
改变C语言控制台文字颜色代码//设置文字颜色// 0-黑 1-蓝 2-绿 3-浅绿 4-红 5-紫 6-黄 7-白 8-灰 9-淡蓝 //10-淡绿 11-淡浅绿 12-淡红 13-淡紫 14-淡黄 15-亮白 #include#includevoid SetColor(int ForeColor,int BackColcr);int main(){ SetCo原创 2018-01-28 17:01:58 · 3384 阅读 · 2 评论