首先,我们要会写一个自定义函数,见下:
C++ 改变光标位置_闪耀的天狼星的博客-优快云博客C++改变光标位置。https://blog.youkuaiyun.com/DUXS11/article/details/125891950?spm=1001.2014.3001.5501好的,学会了之后,就是使用:
#include <bits/stdc++.h>
#include <windows.h>
using namespace std;
void xy(int y,int x)
{
COORD coord;