没有合适的资源?快使用搜索试试~ 我知道了~
造谣器4.docx
需积分: 0 1 下载量 174 浏览量
2023-08-14
19:32:16
上传
评论
收藏 17KB DOCX 举报
温馨提示
试读
18页
造谣器4.docx
资源推荐
资源详情
资源评论
#include<bits/stdc++.h>
#include<windows.h>
#include<stdlib.h>
#include<time.h>
#include<bitset>
#define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? 1:0)
using namespace std;
int mouse_x,mouse_y;
string name[48]= {"安丁菓 ","曹可涵 ","戴雨佳 ","顾洛菲 ","贺璟苧 ","蒋欣蕾 ","金
晨颖 ","居慧妍 ","鞠玉媛 ","施雨辛 ","王冒瑁 ","王思诺 ","王子倩 ","韦雨含 ","
魏思艺 ","吴熙彤 ","徐诺 ","薛佳景 ","姚江颖 ","殷宁 ","尹思妍 ","张又月
","张梓钰 ","朱映璇 ",
"常家成 ","陈冠霖 ","丁柯轩 ","范王子瑞","高政涛 ","管泓铭
","郭宇轩 ","马竣哲 ","潘品澍 ","任宝辰 ","孙捷 ","谭懿中 ","汤斐然 ","王昱辰
","徐子航 ","徐梓涵 ","于子轩 ","占飞扬 ","占宇豪 ","张睿 ","赵天祺 ","赵梓尧
","朱奕 "};
string password="1029384756";
char passwordin[10]={'_','_','_','_','_','_','_','_','_','_'};
POINT p;
HANDLE hOutput = GetStdHandle(STD_OUTPUT_HANDLE);
HWND h=GetForegroundWindow();
CONSOLE_FONT_INFO consoleCurrentFont;
void gotoxy(int x,int y)
{
HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE);
COORD pos;
pos.X = x;
pos.Y = y;
SetConsoleCursorPosition(handle,pos);
}
void HideCursor(int n) /*隐藏光标*/
{
CONSOLE_CURSOR_INFO cursor_info={1,n};
SetConsoleCursorInfo(GetStdHandle(STD_OUTPUT_HANDLE),&cursor_info);
} //隐藏光标只需要把 n 设置为 0 也就是把上面的结构体的 bVisible 设置为 false 就可以了
void mouse()
{
POINT p;
GetCursorPos(&p);
ScreenToClient(h,&p); //获取鼠标在窗口上的位置
GetCurrentConsoleFont(hOutput, FALSE, &consoleCurrentFont); //获取字体信息
mouse_x=p.x/=consoleCurrentFont.dwFontSize.X;
mouse_y=p.y/=consoleCurrentFont.dwFontSize.Y;
}
void setcolor(int ForgC, int BackC) {
WORD wColor = ((BackC & 0x0F) << 4) + (ForgC & 0x0F);
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), wColor);
}
void sign()
{
system("title 造谣器 4-sign");
setcolor(0,15);//背景设为亮白
cout<<"
"<<endl;
cout<<"
"<<endl;
cout<<"
"<<endl;
cout<<"
"<<endl;
cout<<"
"<<endl;
cout<<"
"<<endl;
cout<<" ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■
■■ ■■ "<<endl;
cout<<" ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■
■■ ■■ "<<endl;
cout<<" ■ ■
■■ ■■ "<<endl;
cout<<" ■ ■
■■ ■■ "<<endl;
cout<<" ■ ■
■■ ■■ "<<endl;
cout<<" ■ ■
■■ ■■ "<<endl;
cout<<" ■ ■
■■ ■■ "<<endl;
cout<<" ■ ■
■■ ■■ "<<endl;
cout<<" ■ ■
■■ "<<endl;
cout<<" ■ ■
■■ "<<endl;
cout<<" ■ ■
■■ "<<endl;
cout<<" ■ ■
■■ "<<endl;
cout<<" ■ ■
■■ "<<endl;
cout<<" ■ ■
■■ "<<endl;
cout<<" ■ ■
■■ "<<endl;
cout<<" ■ ■
■■ "<<endl;
cout<<" ■ ■
■■ "<<endl;
cout<<" ■ ■
■■ "<<endl;
cout<<" ■ ■
■■ "<<endl;
cout<<" ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■
■■ "<<endl;
cout<<" ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■
■■ "<<endl;
cout<<"
"<<endl;
cout<<"
"<<endl;
cout<<"
"<<endl;
cout<<"
"<<endl;
cout<<"
"<<endl;
cout<<"
"<<endl;
cout<<"
"<<endl;
cout<<"
"<<endl;
cout<<"
"<<endl;
Sleep(1000);
system("cls");
}
void password_in()
{
system("title 造谣器 4-密码输入");
for(int i=0;i<10;i++)
{
passwordin[i]='_';
}
int length=0;
while(1)
{
gotoxy(0,0);
for(int i=0;i<(35-1-20)/2;i++)
{
setcolor(0,15);
for(int i=0;i<120;i++)
cout<<" ";
cout<<endl;
}
for(int i=0;i<5;i++)
{
setcolor(0,15);
for(int j=0;j<(120-24)/2;j++)
cout<<" ";
setcolor(0,7);
cout<<" ";
setcolor(0,15);
for(int j=0;j<(120-24)/2;j++)
cout<<" ";
cout<<endl;
}
setcolor(0,15);
for(int j=0;j<(120-24)/2;j++) cout<<" ";
setcolor(0,7);
cout<<" ";
for(int i=0;i<10;i++)
{
if(passwordin[i]!='_')
cout<<"* ";
else
cout<<passwordin[i]<<" ";
}
cout<<" ";
setcolor(0,15);
for(int j=0;j<(120-24)/2;j++) cout<<" ";
cout<<endl;
for(int i=0;i<2;i++)
剩余17页未读,继续阅读
资源评论
不那么渴望的C++
- 粉丝: 3
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功