C++#include<bits/stdc++.h>
#include<conio.h>
#include"windows.h"
using namespace std;
int main(){
srand(time(NULL));
string s[20]={"谢谢参与","谢谢参与","谢谢参与","谢谢参与","谢谢参与","谢谢参与","谢谢参与","谢谢参与","谢谢参与","谢谢参与","三等奖!","三等奖!","三等奖!","三等奖!","三等奖!","三等奖!","三等奖!","二等奖!","二等奖!","一等奖!"};
while(true){
system("cls");
int i=rand()%20;
cout<<setw(300)<<"结果是:"<<s[i]<<endl;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED);
if(kbhit())break;
}
system("pause");
return 0;
}