![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
神奇的世界
知道越多越不懂
展开
-
隐藏光标函数
已封装好1。vs6void HideCursor() {//第二个值为0表示隐藏光标CONSOLE_CURSOR_INFO cursor_info = {1,0};SetConsoleCursorlnfo(GetStdHandle(STD_OUTPUT_HANDLE),&cursor_info);}2.终端void HideCursor(){HANDLE hOut = G...原创 2018-10-04 17:58:31 · 4018 阅读 · 0 评论 -
移动光标位置
已封装void gotoxy(int x,int y) { //光标移动到(x,y)位置HANDLE handle=GetStdHandle(STD_OUTPUT_HANDLE);COORD pos;pos.X=x;pos.Y=y;SetConsoleCursorPosition(handle,pos);}转载 2018-10-04 18:04:58 · 559 阅读 · 0 评论 -
飞机小游戏源代码
有点简陋,请指教#include <stdio.h>#include <stdlib.h>#include <string.h>#include <conio.h>#include <windows.h>//函数全局变量定义int position_x,position_y;//飞机的位置int high,width;//...原创 2018-10-04 18:07:16 · 1882 阅读 · 2 评论