请问各位,光标怎么隐藏?我复制了一个光标,不知道把另一个光标隐藏
目前程序如下:
#include
using namespace std;
int main()
{
string z;
int x;
bool y;
y=0;
while(1){
system("cls");
if(y==1){
cout<<"|";
y=!y;
}
else{
cout<<" ";
y=!y;
}
x=0;
while(x<=100000000){
x++;
}
}
}
知道的打在评论区,速回!
#include <windows.h>
HANDLE HOutput = GetStdHandle(STD_OUTPUT_HANDLE);
CONSOLE_CURSOR_INFO curInfo;
curInfo.bVisible = FALSE; //隐藏
SetConsoleCursorInfo(HOutput, &curInfo);