抽学号的小程序

#include
#include
using namespace std;


void hide_cursor()//隐藏光标
{
	HANDLE h_GAME =GetStdHandle(STD_OUTPUT_HANDLE);
	CONSOLE_CURSOR_INFO cursor_info;
	GetConsoleCursorInfo(h_GAME,&cursor_info);
	cursor_info.bVisible=false;
	SetConsoleCursorInfo(h_GAME,&cursor_info);
}


int main()
{
	hide_cursor();
	int num=0,xytx[5];
	system("color 0f");
	cout<<"抽几名“幸运”的同学?";
	cin>>num;
	srand(unsigned(time(0)));
	
	for(int i=1;i<=num;i++)
	{
		system("cls");
		for(int j=1;j<=30;j++)
		{
			cout<

你可能感兴趣的:(c++)