当我们要了解一些h火柴人经典语录的时候,豆豆语录网已经为您备好了这些h火柴人经典语录的内容,等待您的翻阅,相信这些h火柴人经典语录的相关信息会是您正想要阅读的经典语录。
h火柴人经典语录
#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
int player[100000001],sf[100000001],buy,computer,score,cishu,win,lose,tili=10,co,a,b,c,d,meichao=1;
int isvip=0,ismvp=0,xingyv=100;
void out();
void judge();
void timu(int);
void zhiliwenda();
void screen();
void screan();
void computer_lose();
void player_lose();
void tin();
void tili_0();
void fight();
void store();
void color();
void waigua();
void meiyuan();
void jianjei();
void chengfa();
int main()
{
srand((int)time(0));
system("color 9F");
cout<<"欢迎来到石头剪刀布大战2.8版本!";
ofstream fout("C:\\Program Files\\石头剪刀布.txt");
Sleep(2000);
cout<<endl;
screen();
return 0;
}
void out(string s)
{
int i;
for(i=0;i<=s.length();i++)
{
cout<<s[i];
Sleep(20);
}
}
void screen()
{
while(1)
{
system("cls");
if(xingyv<=0)
{
out("信誉为0,休息一会,马上回来!");
cout<<endl;
int i,yushu;
for(i=1;i<=rand()%20;i++)
{
yushu=i%8;
switch(yushu)
{
case 0:
{
system("color 0F");
out("吃鸡三级头套装,限购10个哟!");
system("cls");
break;
}
case 1:
{
system("color 3F");
out("我的世界头套100个,现在大促销,快来买哟!");
system("cls");
break;
}
case 2:
{
system("color AF");
out("装逼专用机器,还送10年保修哟!");
system("cls");
break;
}
case 3:
{
system("color BF");
out("吃鸡专用98k,800里外一枪爆头!");
system("cls");
break;
}
case 4:
{
system("color AB");
out("王者10000000份外挂大放送,手快有手慢无!");
system("cls");
break;
}
case 5:
{
system("color 0F");
out("联* x220i笔记本电脑出售,抢购只在1秒间!");
system("cls");
break;
}
case 6:
{
system("color 1F");
out("6666666,6666666,6666666,6666666");
system("cls");
xingyv+=100;
break;
}
}
}
zhiliwenda();
}
system("cls");
if(score<0)
{
chengfa();
system("cls");
break;
}
out("你现在有");
cout<<score;
out("张毛爷爷,");
cout<<meichao;
out("美元,");
cout<<tili;
out("点体力值,");
cout<<win;
out("次胜利,");
cout<<lose;
out("次失败,");
cout<<isvip;
out("张VIP卡,");
cout<<ismvp;
out("张MVP卡,");
cout<<xingyv;
out("信誉积分.");
cout<<endl;
out("现在,你可以有以下选择:");
cout<<endl;
out("1:人机大战");
cout<<endl;
out("2:购买道具");
cout<<endl;
out("3.游戏简介");
cout<<endl;
out("4:外挂");
cout<<endl;
out("5:调整设置");
int in;
cout<<endl;
cin>>in;
switch(in)
{
case 1:
fight();
system("cls");
break;
case 2:
store();
system("cls");
break;
case 3:
jianjei();
system("cls");
break;
case 4:
waigua();
system("cls");
case 5:
color();
system("cls");
default:
out("输错了,请重试。");
}
}
}
void jianjei()
{
int o;
printf("本游戏版权归属为学神,请勿盗版。本版本预计10月12日更新,如有延迟请恕罪。2.8版本跟新了外挂和信誉积分模式,后面可能完善,整体功能提高。请大家散布通缉令通缉李明浩 江月路两人谢谢");
printf("下一个版本可能会有信誉积分的兑换和奖励,请点个赞") ;
printf("点赞打1否则打2");
scanf("%d",&o);
if(o==1)
{
score+=10;
}
else
{
score-=10;
}
}
void fight()
{
if(xingyv>=20)
{
cishu++;
tili--;
xingyv-=(rand()%10);
out("你先出。");
cout<<endl;
out("1:石头");
cout<<endl;
out("2:剪刀");
cout<<endl;
out("3:布");
cout<<endl;
out("你出的是:");
cin>>player[cishu];
if(player[cishu]>=4 || player[cishu]<=0)
{
out("无效输入。");
return;
}
computer=(rand()%3)+1;
switch(computer)
{
case 1:
out("电脑出的是石头。");
break;
case 2:
out("电脑出的是剪刀。");
break;
case 3:
out("电脑出的是布。");
break;
}
judge();
}
else
{
printf("信誉积分不足");
xingyv+=5;
}
}
void computer_lose()
{
out("玩家胜利!");
cout<<endl;
sf[cishu]=1;
score+=((rand()%5)+6);
win++;
}
void player_lose()
{
out("玩家失败!");
cout<<endl;
sf[cishu]=-1;
lose++;
}
void tin()
{
out("平局!");
cout<<endl;
}
void store()
{
system("cls");
out("欢迎来到《石头剪刀布》士多店。您有");
cout<<score;
out("张毛爷爷。");
cout<<isvip;
out("张VIP卡");
cout<<ismvp;
out("张MVP卡");
cout<<endl;
out("请问您要买什么?");
cout<<endl;
out("1:失败记录修改器。可以减少一次失败记录。¥5");
cout<<endl;
out("2:胜利记录修改器。可以增加一次胜利记录。¥8");
cout<<endl;
out("3:冰阔落。可以增加5点体力值。¥5");
cout<<endl;
out("4:兴奋剂。可以增加10点体力值。¥10");
cout<<endl;
out("5:一次性刷钱机。可以增加随机价格的毛爷爷。¥10");
cout<<endl;
out("6:商场VIP会员卡。能给商品降低80%价格。¥50");
cout<<endl;
out("7:战无不胜卡(五次,vip和mvp不降价)。¥25");
cout<<endl;
out("8:商场MVP权限。可降价50%。在VIP的基础上再加多100块。");
cout<<endl;
out("9:退出。");
cout<<endl;
out("10:100信誉积分(只有VIP和MVP才能买) ¥300");
cout<<endl;
out("11:解锁全游戏。胜利10次即可购买。");
cout<<endl;
out("12:管理员权限。战胜500次即可获得。");
cin>>buy;
if(isvip>=1&&ismvp<=0)
{
switch(buy)
{
case 1:
score-=4;
lose--;
break;
case 2:
score-=6;
win++;
break;
case 3:
score-=4;
tili+=5;
break;
case 4:
score-=8;
tili+=10;
break;
case 5:
score-=8;
score+=(rand()%100);
break;
case 6:
isvip=1;
out("VIP权限申请成功。");
score-=40;
break;
case 7:
win+=5;
for(int i=cishu;i<=cishu+5;i++)
{
sf[i]=1;
cishu++;
}
break;
case 8:
ismvp=1;
out("VIP成功升级为MVP。");
isvip-=1;
score-=120;
break;
case 9:
score+=1;
case 10:
score-=300;
xingyv+=100;
if(score<0) out("操你妈的,居然敢不带够钱买东西,给老子滚出去!"),win=0,score=0,lose=1000000;
}
}
if(ismvp>=1)
{
switch(buy)
{
case 1:
score-=3;
lose--;
break;
case 2:
score-=4;
win++;
break;
case 3:
score-=3;
tili+=5;
break;
case 4:
score-=5;
tili+=10;
break;
case 5:
score-=5;
score+=(rand()%100);
break;
case 6:
isvip=1;
out("VIP权限申请成功。");
score-=25;
break;
case 7:
win+=5;
for(int i=cishu;i<=cishu+5;i++)
{
sf[i]=1;
cishu++;
}
break;
case 8:
ismvp=1;
out("VIP成功升级为MVP。");
isvip-=1;
score-=75;
break;
case 9:
score+=1;
break;
case 10:
score-=300;
xingyv+=100;
//ofstream fout("")
if(score<0) out("操你妈的,居然敢不带够钱买东西,给老子滚出去!"),win=0,score=0,lose=1000000;
}
}
if(isvip<=0&&ismvp<=0)
{
switch(buy)
{
case 1:
score-=5;
lose--;
break;
case 2:
score-=8;
win++;
break;
case 3:
score-=5;
tili+=5;
break;
case 4:
score-=10;
tili+=10;
break;
case 5:
score-=10;
score+=(rand()%100);
break;
case 6:
isvip=1;
out("VIP权限申请成功。");
score-=50;
break;
case 7:
win+=5;
for(int i=cishu;i<=cishu+5;i++)
{
sf[i]=1;
cishu++;
}
break;
//ofstream fout("")
if(score<0)
out("操你妈的,居然敢不带够钱买东西,给老子滚出去!"),win=0,score=0,lose=1000000;
}
}
}
void waigua()
{
printf("密码1:");
scanf("%d",&a);
printf("密码2:");
scanf("%d",&b);
c=a+b;
if(c==5201314)
{
score+=200;
printf("谁是学神?");
printf("1.甘子钰");
printf("2.李明浩");
printf("3.李瑜桓");
printf("4.龙立轩");
printf("5.这一题不适合我,退出");
scanf("%d",&d);
if(d==1||d==3)
{
printf("你答对了,真棒");
score+=500;
}
if(d==2||d==4)
{
printf("错了,减100毛爷爷");
score-=100;
}
if(d==5)
{
printf("拜拜,给你1个毛爷爷");
score+=1;
}
if(d>5)
{
printf("调皮蛋,罚50毛爷爷");
score-=50;
}
}
else
{
score=0;
}
}
void chengfa()
{
int cv;
if(score<0)
{
printf("惩罚开始");
printf("......................................");
printf("......................................");
printf("......................................");
printf("......................................");
printf("......................................");
printf("......................................");
printf("......................................");
printf("......................................");
printf("......................................");
printf("......................................");
printf("......................................");
printf("......................................");
printf("......................................");
printf("......................................");
printf("......................................");
printf("......................................");
printf("......................................");
printf("......................................");
printf("......................................");
printf("......................................");
printf("......................................");
printf("......................................");
printf("......................................");
printf("......................................");
printf("......................................");
printf("......................................");
printf("......................................");
printf("......................................");
printf("......................................");
printf("......................................");
printf("......................................");
printf("......................................");
printf("......................................");
printf("......................................");
printf("......................................");
printf("1.....................................");
printf("......................................");
printf("......................................");
printf("......................................");
printf("......................................");
printf("......................................");
printf("......................................");
printf("......................................");
printf("......................................");
printf("刚刚多余的是什么数字");
scanf("%d",&cv);
if(cv==1)
{
score+=50;
}
else
{
chengfa();
system("cls");
}
}
}
void color()
{
out("你要什么字体颜色?");
cout<<endl;
out("黑色:按1");
cout<<endl;
out("蓝色:按2");
cout<<endl;
out("绿色:按3");
cout<<endl;
out("浅绿色:按4");
cout<<endl;
out("红色:按5");
cout<<endl;
out("紫色:按6");
cout<<endl;
out("黄色:按7");
cout<<endl;
out("白色:按8");
cout<<endl;
out("灰色:按9");
cout<<endl;
out("淡蓝色:按A");
cout<<endl;
out("淡绿色:按B");
cout<<endl;
out("淡浅绿色:按C");
cout<<endl;
out("淡红色:按D");
cout<<endl;
out("淡紫色:按E");
cout<<endl;
out("淡黄色:按F");
cout<<endl;
out("亮白色:按G");
cout<<endl;
char c;
cin>>c;
switch(c)
{
case '1':
system("color 0");
break;
case '2':
system("color 1");
break;
case '3':
system("color 2");
break;
case '4':
system("color 3");
break;
case '5':
system("color 4");
break;
case '6':
system("color 5");
break;
case '7':
system("color 6");
break;
case '8':
system("color 7");
break;
case '9':
system("color 8");
break;
case 'A':
system("color 9");
break;
case 'B':
system("color A");
break;
case 'C':
system("color B");
break;
case 'D':
system("color C");
break;
case 'E':
system("color D");
break;
case 'F':
system("color E");
break;
case 'G':
system("color F");
break;
default:
system("color");
break;
}
out("调颜色成功。");
}
void judge()
{
if(player[cishu]==1)
{
if(computer==2)
{
computer_lose();
}
if(computer==3)
{
player_lose();
}
if(computer==1)
{
tin();
}
}
if(player[cishu]==2)
{
if(computer==3)
{
computer_lose();
}
if(computer==1)
{
player_lose();
}
if(computer==2)
{
tin();
}
}
if(player[cishu]==3)
{
if(computer==1)
{
computer_lose();
}
if(computer==2)
{
player_lose();
}
if(computer==3)
{
tin();
}
}
}
void zhiliwenda()
{
system("cls");
system("color 9F");
for(int i=1;i<=10;i++)
timu(rand()%10);
tili+=5;
}
void timu(int in)
{
int input;
switch(in)
{
case 0:
{
out("0~31有几个数?");
cout<<endl;
cin>>input;
if(input==32)
{
out("被你答对了,真是不可思议!");
return;
}
else
{
out("脑子有问题。");
timu(rand()%10);
}
}
break;
case 1:
{
out("0,1,1,2,3,5,8,后面是什么?");
cout<<endl;
cin>>input;
if(input==13)
{
out("被你答对了,真是不可思议!");
return;
}
else
{
out("sb。");
timu(rand()%10);
}
}
break;
case 2:
{
out("9,61,52,63,94,后面是什么?");
cout<<endl;
cin>>input;
if(input==64)
{
out("被你给答对了,真是不可思议!");
return;
}
else
{
out("6666666。");
timu(rand()%10);
}
}
break;
case 3:
{
out("求7分之1的小数点后第1000位是多少。");
cout<<endl;
cin>>input;
if(input==8)
{
out("被你答对了,真是不可思议!");
return;
}
else
{
out("这都不会。");
timu(rand()%10);
}
}
break;
case 4:
{
out("求13分之1的小数点后第1000位是多少。");
cout<<endl;
cin>>input;
if(input==9)
{
out("被你答对了,真是不可思议!");
return;
}
else
{
out("这都不会。");
timu(rand()%10);
}
}
break;
case 5:
{
out("2^16=?");
cout<<endl;
cin>>input;
if(input==65536)
{
out("被你答对了,真是不可思议!");
return;
}
else
{
out("这都不会。。。");
timu(rand()%10);
}
}
break;
case 6:
{
out("一吨水多少钱?");
cout<<endl;
cin>>input;
if(input>=3&&input<=8)
{
out("被你答对了,真是不可思议!");
return;
}
else
{
out("这都不会。666666666。。。");
timu(rand()%10);
}
}
break;
case 7:
{
out("求你一天吃几碗饭。");
cout<<endl;
cin>>input;
if(input<=2)
{
out("被你答对了,真是不可思议!");
return;
}
else
{
out("吃货!");
timu(rand()%10);
}
}
break;
case 8:
{
out("求标准钢琴有几个键。");
cout<<endl;
cin>>input;
if(input==88)
{
out("被你答对了,真是不可思议!");
return;
}
else
{
out("这都不会。。。估计不弹钢琴。。。");
timu(rand()%10);
}
}
break;
case 9:
{
out("本游戏至少有多少行?");
cout<<endl;
cin>>input;
if(input>=600)
{
out("被你答对了,真是不可思议!");
return;
}
else
{
out("这都不会。");
timu(rand()%10);
}
}
break;
}
}
void screan()
{
while(1)
{
system("cls");
if(tili<=0)
{
out("体力为0,休息一会,马上回来!");
cout<<endl;
int i,yushu;
for(i=1;i<=rand()%20;i++)
{
yushu=i%8;
switch(yushu)
{
case 0:
{
system("color 0F");
out("吃鸡三级头套装,限购10个哟!");
system("cls");
break;
}
case 1:
{
system("color 3F");
out("我的世界头套100个,现在大促销,快来买哟!");
system("cls");
break;
}
case 2:
{
system("color AF");
out("装逼专用机器,还送10年保修哟!");
system("cls");
break;
}
case 3:
{
system("color BF");
out("吃鸡专用98k,800里外一枪爆头!");
system("cls");
break;
}
case 4:
{
system("color AB");
out("王者10000000份外挂大放送,手快有手慢无!");
system("cls");
break;
}
case 5:
{
system("color 0F");
out("联* x220i笔记本电脑出售,抢购只在1秒间!");
system("cls");
break;
}
case 6:
{
system("color 1F");
out("6666666,6666666,6666666,6666666");
system("cls");
break;
}
}
}
zhiliwenda();
}
system("cls");
out("你现在有");
cout<<score;
out("张毛爷爷,");
cout<<tili;
out("点体力值,");
cout<<win;
out("次胜利,");
cout<<lose;
out("次失败。");
cout<<isvip;
out("张VIP卡");
cout<<ismvp;
out("张MVP卡");
cout<<xingyv;
out("信誉积分");
cout<<endl;
out("现在,你可以有以下选择:");
cout<<endl;
out("1:人机大战");
cout<<endl;
out("2:购买道具");
cout<<endl;
out("3.游戏简介");
cout<<endl;
out("4:外挂");
cout<<endl;
out("5:调整设置");
int in;
cin>>in;
switch(in)
{
case 1:
fight();
system("cls");
break;
case 2:
store();
system("cls");
break;
case 3:
jianjei();
system("cls");
break;
case 4:
waigua();
system("cls");
case 5:
color();
system("cls");
default:
out("输错了,请重试。");
}
}
}
h火柴人经典语句
/*===========================Program Description==========================*/
/*程序名称:game.c */
/*程序目的:打砖块游戏演示 */
/*written by :董大钿 */
/*========================================================================*/
#include "graphics.h"
#include "stdio.h"
#include "conio.h" /*所需的头文件*/
int on; /*声明具有开关作用的全局变量*/
static int score; /*声明静态的记分器变量*/
/* 定义开始界面函数*/
int open()
{
setviewport(100,100,500,380,1); /*设置图形窗口区域*/
setcolor(4); /*设置作图色*/
rectangle(0,0,399,279); /*以矩形填充所设的图形窗口区域*/
setfillstyle(SOLID_FILL,7); /*设置填充方式*/
floodfill(50,50,4); /*设置填充范围*/
setcolor(8);
settextstyle(0,0,9); /*文本字体设置*/
outtextxy(90,80,"BALL"); /*输出文本内容*/
settextstyle(0,0,1);
outtextxy(110,180,"version 1.0");
outtextxy(110,190,"made by ddt");
setcolor(128);
settextstyle(0,0,1);
outtextxy(120,240,"Press any key to continue......");
}
/*定义退出界面函数*/
int quitwindow()
{
char s[100]; /*声明用于存放字符串的数组*/
setviewport(100,150,540,420,1);
setcolor(YELLOW);
rectangle(0,0,439,279);
setfillstyle(SOLID_FILL,7);
floodfill(50,50,14);
setcolor(12);
settextstyle(0,0,8);
outtextxy(120,80,"End");
settextstyle(0,0,2);
outtextxy(120,200,"quit? Y/N");
sprintf(s,"Your score is:%d",score);/*格式化输出记分器的值*/
outtextxy(120,180,s);
on=1; /*初始化开关变量*/
}
/*主函数*/
main()
{
int gdriver,gmode;
gdriver=DETECT; /*设置图形适配器*/
gmode=VGA; /*设置图形模式*/
registerbgidriver(EGAVGA_driver); /*建立独立图形运行程序*/
initgraph(&gdriver,&gmode,""); /*图形系统初试化*/
setbkcolor(14);
open(); /*调用开始界面函数*/
getch(); /*暂停*/
while(1) /*此大循环体控制游戏的反复重新进行*/
{
int driver,mode,l=320,t=400,r,a,b,dl=5,n,x=200,y=400,r1=10,dx=-2,dy=-2;/*初始化小球相关参数*/
int left[100],top[100],right[100],bottom[100],i,j,k,off=1,m,num[100][100];/*方砖阵列相关参数*/
static int pp;
static int phrase; /*一系列起开关作用的变量*/
int oop=15;
pp=1;
score=0;
driver=DETECT;
mode=VGA;
registerbgidriver(EGAVGA_driver);
initgraph(&driver,&mode,"");
setbkcolor(10);
cleardevice(); /*图形状态下清屏*/
clearviewport(); /*清除现行图形窗口内容*/
b=t+6;
r=l+60;
setcolor(1);
rectangle(0,0,639,479);
setcolor(4);
rectangle(l,t,r,b);
setfillstyle(SOLID_FILL,1);
floodfill(l+2,t+2,4);
for(i=0,k=0;i<=6;i++) /*此循环绘制方砖阵列*/
{
top[i]=k;
bottom[i]=top[i]+20;
k=k+21;
oop--;
for(j=0,m=0;j<=7;j++)
{
left[j]=m;
right[j]=left[j]+80;
m=m+81;
setcolor(4);
rectangle(left[j],top[i],right[j],bottom[i]);
setfillstyle(SOLID_FILL,j+oop);
floodfill(left[j]+1,top[i]+1,4);
num[i][j]=pp++;
}
}
while(1) /*此循环控制整个动画*/
{
while(!kbhit())
{
x=x+dx; /*小球运动的圆心变量控制*/
y=y+dy;
if(x+r1>r||x+r1<r)
{ phrase=0;}
if((x-r1<=r||x+r1<=r)&&x+r1>=l)
{
if(y<t)
phrase=1;
if(y+r1>=t&&phrase==1)
{dy=-dy;y=t-1-r1;}
}
if(off==0)
continue;
for(i=0;i<=6;i++) /*此循环用于判断、控制方砖阵列的撞击、擦除*/
for(j=0;j<=7;j++)
{
if((x+r1<=right[j]&&x+r1>=left[j])||(x-r1<=right[j]&&x-r1>=left[j]))
{
if(( y-r1>top[i]&&y-r1<=bottom[i])||(y+r1>=top[i]&&y+r1<=bottom[i] ))
{
if(num[i][j]==0)
{continue; }
setcolor(10);
rectangle(left[j],top[i],right[j],bottom[i]);
setfillstyle(SOLID_FILL,10);
floodfill(left[j]+1,top[i]+1,10);
dy=-dy;
num[i][j]=0;
score=score+10;
printf("%d\b\b\b",score);
}
}
if((y+r1>=top[i]&&y+r1<=bottom[i])||(y-r1>=top[i]&&y-r1<=bottom[i]))
{
if((x+r1>=left[j]&&x+r1<right[j])||(x-r1<=right[j]&&x-r1>left[j]))
{
if(num[i][j]==0)
{ continue;}
setcolor(10);
rectangle(left[j],top[i],right[j],bottom[i]);
setfillstyle(SOLID_FILL,10);
floodfill(left[j]+1,top[i]+1,10);
dx=-dx;
num[i][j]=0;
score=score+10;
printf("%d\b\b\b",score);
}
}
}
if(x+r1>639) /*控制小球的弹射范围*/
{dx=-dx;x=638-r1;}
if(x<=r1)
{dx=-dx;x=r1+1;}
if(y+r1>=479)
{off=0;quitwindow();break;}
if(y<=r1)
{dy=-dy;y=r1+1;}
if(score==560)
{off=0;quitwindow();break;}
setcolor(6);
circle(x,y,r1);
setfillstyle(SOLID_FILL,14);
floodfill(x,y,6);
delay(1000);
setcolor(10);
circle(x,y,r1);
setfillstyle(SOLID_FILL,10);
floodfill(x,y,10);
}
a=getch();
setcolor(10);
rectangle(l,t,r,b);
setfillstyle(SOLID_FILL,10);
floodfill(l+2,t+2,10);
if(a==77&&l<=565) /*键盘控制设定*/
{dl=20;l=l+dl;}
if(a==75&&l>=15)
{dl=-20;l=l+dl;}
if(a=='y'&&on==1)
break;
if(a=='n'&&on==1)
break;
if(a==27)
{quitwindow();off=0;}
r=l+60;
setcolor(4);
rectangle(l,t,r,b);
setfillstyle(SOLID_FILL,1);
floodfill(l+5,t+5,4);
delay(100);
}
if(a=='y'&&on==1) /*是否退出游戏*/
{break;}
if(a=='n'&&on==1)
{ continue;}
}
closegraph();
}
本回答被提问者采纳
既然是经典,那就:
言出必行,说到做到,这就是我的忍道。——漩涡鸣人原谅我,佐助,下次再教你吧。原谅我,佐助,这是最后一次了。——宇智波鼬火影忍者有哪些金句?www.zhihu.com为了木叶村的和平,并且最重要的——为了你宇智波佐助,他希望能得到一个作为罪犯,作为叛徒的死。给予荣誉得到污名,付出爱情得到怨恨,即使如此,鼬还是含笑而终,将宇智波之名托付给你这个弟弟,并一直把你蒙在鼓里。——带土对佐助说
void panduan2()
{
if(win>=10){
out("已解锁全部游戏");
Sleep(2000);
abc=1;
win-=10;
}else{
out("权限不够");
Sleep(1000);
}
}
void waigua(){
printf("密码1:");
scanf("%d",&a);
printf("密码2:");
scanf("%d",&b);
c=a+b;
if(c==286){
score+=200;
printf("谁是学神?");
cout<<endl;
printf("1 .徐若宸");
cout<<endl;
printf("2 .文雅洁");
cout<<endl;
printf("3 .朱持正");
cout<<endl;
printf("4 .杨程程");
cout<<endl;
printf("5 .张紫涵");
cout<<endl;
printf("6 .石欣宇");
cout<<endl;
printf("7 .其他人");
cout<<endl;
printf("9 .你自己");
cout<<endl;
printf("10.这一题不适合我,退出");
cout<<endl;
scanf("%d",&d);
if(d==1||d==2||d==3){
out("你答对了,真棒");
Sleep(2000);
score+=500;
return;
}
if(d==4||d==5||d==6||d==7||d==8){
out("错了,减100毛爷爷");
Sleep(2000);
score-=100;
return;
}
if(d==9){
out("怎么可能?减200毛爷爷");
Sleep(2000);
score-=200;
return;
}
if(d==10){
out("拜拜,给你1个毛爷爷");
Sleep(2000);
score+=1;
return;
}
if(d>10){
out("调皮蛋,罚50毛爷爷");
Sleep(2000);
score-=50;
return;
}
}
else{
cout<<"你答错了!Sorry!O(∩_∩)O"<<endl;
Sleep(1000);
score=0;
return;
}
}
void chengfa()
{
int cv;
if(score<=0)
{
printf("惩罚开始");
cout<<endl;
printf("SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS");
cout<<endl;
printf("SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS");
cout<<endl;
printf("SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS");
cout<<endl;
printf("SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS");
cout<<endl;
printf("SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS");
cout<<endl;
printf("SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS");
cout<<endl;
printf("SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS");
cout<<endl;
printf("SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS");
cout<<endl;
printf("SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS");
cout<<endl;
printf("SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS");
cout<<endl;
printf("SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS");
cout<<endl;
printf("SSSSSSSSSSSSSSSSSS5SSSSSSSSSSSSSSSSSSS");
cout<<endl;
printf("SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS");
cout<<endl;
printf("SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS");
cout<<endl;
printf("SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS");
cout<<endl;
printf("SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS");
cout<<endl;
printf("SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS");
cout<<endl;
printf("SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS");
cout<<endl;
printf("SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS");
cout<<endl;
printf("SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS");
cout<<endl;
printf("刚刚多余的数字在第几行第几列");
scanf("%d",&cv);
int cvv;
cin >> cvv;
if(cv==6&&cvv==19)
{//6 19
score+=50;
lose=10000000;
screen();
}
else
{
chengfa();
system("cls");
}
}
}
void color()
{
out("你要什么字体颜色?");
cout<<endl;
out("黑色:按1");
cout<<endl;
out("蓝色:按2");
cout<<endl;
out("绿色:按3");
cout<<endl;
out("浅绿色:按4");
cout<<endl;
out("红色:按5");
cout<<endl;
out("紫色:按6");
cout<<endl;
out("黄色:按7");
cout<<endl;
out("白色:按8");
cout<<endl;
out("灰色:按9");
cout<<endl;
out("淡蓝色:按A");
cout<<endl;
out("淡绿色:按B");
cout<<endl;
out("淡浅绿色:按C");
cout<<endl;
out("淡红色:按D");
cout<<endl;
out("淡紫色:按E");
cout<<endl;
out("淡黄色:按F");
cout<<endl;
out("亮白色:按G");
cout<<endl;
char c;
cin>>c;
switch(c)
{
case '1':
system("color 0");
break;
case '2':
system("color 1");
break;
case '3':
system("color 2");
break;
case '4':
system("color 3");
break;
case '5':
system("color 4");
break;
case '6':
system("color 5");
break;
case '7':
system("color 6");
break;
case '8':
system("color 7");
break;
case '9':
system("color 8");
break;
case 'A':
system("color 9");
break;
case 'B':
system("color A");
break;
case 'C':
system("color B");
break;
case 'D':
system("color C");
break;
case 'E':
system("color D");
break;
case 'F':
system("color E");
break;
case 'G':
system("color F");
break;
default:
system("color");
break;
}
out("调颜色成功。");
}
void judge()
{
if(player[cishu]==1)
{
if(computer==2)
{
computer_lose();
}
if(computer==3)
{
player_lose();
}
if(computer==1)
{
tin();
}
}
if(player[cishu]==2)
{
if(computer==3)
{
computer_lose();
}
if(computer==1)
{
player_lose();
}
if(computer==2)
{
tin();
}
}
if(player[cishu]==3)
{
if(computer==1)
{
computer_lose();
}
if(computer==2)
{
player_lose();
}
if(computer==3)
{
tin();
}
}
}
void zhiliwenda()
{
system("cls");
system("color 9F");
cout<<"开始智力问答!"<<endl;
Sleep(1000);
for(int i=1;i<=10;i++)
timu(rand()%10);
tili+=5;
}
void timu(int in)
{
int input;
switch(in)
{
case 0:
{
out("0~31有几个数?");
cout<<endl;
cin>>input;
if(input==32)
{
out("被你答对了,真是不可思议!");
cout<<endl;
return;
}
else
{
out("脑子有问题。");
cout<<endl;
timu(rand()%10);
}
}
break;
case 1:
{
out("0,1,1,2,3,5,8,后面是什么?");
cout<<endl;
cin>>input;
if(input==13)
{
out("被你答对了,真是不可思议!");
cout<<endl;
return;
}
else
{
out("sb。");
cout<<endl;
timu(rand()%10);
}
}
break;
case 2:
{
out("9,61,52,63,94,后面是什么?");
cout<<endl;
cin>>input;
if(input==64)
{
out("被你给答对了,真是不可思议!");
cout<<endl;
return;
}
else
{
out("6666666。");
cout<<endl;
timu(rand()%10);
}
}
break;
case 3:
{
out("求7分之1的小数点后第1000位是多少。");
cout<<endl;
cin>>input;
if(input==8)
{
out("被你答对了,真是不可思议!");
cout<<endl;
return;
}
else
{
out("这都不会。");
cout<<endl;
timu(rand()%10);
}
}
break;
case 4:
{
out("求13分之1的小数点后第1000位是多少。");
cout<<endl;
cin>>input;
if(input==9)
{
out("被你答对了,真是不可思议!");
cout<<endl;
return;
}
else
{
out("这都不会。");
cout<<endl;
timu(rand()%10);
}
}
break;
case 5:
{
out("2^16=?");
cout<<endl;
cin>>input;
if(input==65536)
{
out("被你答对了,真是不可思议!");
cout<<endl;
return;
}
else
{
out("这都不会。。。");
cout<<endl;
timu(rand()%10);
}
}
break;
case 6:
{
out("一吨水多少钱?");
cout<<endl;
cin>>input;
if(input>=3&&input<=8)
{
out("被你答对了,真是不可思议!");
cout<<endl;
return;
}
else
{
out("这都不会。666666666。。。");
cout<<endl;
timu(rand()%10);
}
}
break;
case 7:
{
out("求你一天吃几碗饭。");
cout<<endl;
cin>>input;
if(input<=2)
{
out("被你答对了,真是不可思议!");
cout<<endl;
return;
}
else
{
out("吃货!");
cout<<endl;
timu(rand()%10);
}
}
break;
case 8:
{
out("求标准钢琴有几个键。");
cout<<endl;
cin>>input;
if(input==88)
{
out("被你答对了,真是不可思议!");
cout<<endl;
return;
}
else
{
out("这都不会。。。估计不弹钢琴。。。");
cout<<endl;
timu(rand()%10);
}
}
break;
case 9:
{
out("本游戏至少有多少行?");
cout<<endl;
cin>>input;
if(input>=600)
{
out("被你答对了,真是不可思议!");
cout<<endl;
return;
}
else
{
out("这都不会。");
cout<<endl;
timu(rand()%10);
}
}
break;
}
}
void screan()
{
while(1)
{
system("cls");
if(tili<=0)
{
out("体力为0,休息一会,马上回来!");
cout<<endl;
Sleep(2000);
int i,yushu;
for(i=1;i<=rand()%20;i++)
{
yushu=i%8;
switch(yushu)
{
case 0:
{
system("color 0F");
out("吃鸡三级头套装,限购10个哟!");
Sleep(2000);
system("cls");
break;
}
case 1:
{
system("color 3F");
out("我的世界头套100个,现在大促销,快来买哟!");
Sleep(2000);
system("cls");
break;
}
case 2:
{
system("color AF");
out("装逼专用机器,还送10年保修哟!");
Sleep(2000);
system("cls");
break;
}
case 3:
{
system("color BF");
out("吃鸡专用98k,800里外一枪爆头!");
Sleep(2000);
system("cls");
break;
}
case 4:
{
system("color AB");
out("王者10000000份外挂大放送,手快有手慢无!");
Sleep(2000);
system("cls");
break;
}
case 5:
{
system("color 0F");
out("Surface Pro 7笔记本电脑出售,抢购只在1秒间!");
Sleep(2000);
system("cls");
break;
}
case 6:
{
system("color 1F");
out("6666666,6666666,6666666,6666666");
Sleep(2000);
system("cls");
break;
}
}
}
zhiliwenda();
}
out("你现在有");
cout<<score;
out("张毛爷爷,");
cout<<meichao;
out("美元,");
cout<<tili;
out("点体力值,");
cout<<win;
out("次胜利,");
cout<<lose;
out("次失败,");
cout<<isvip;
out("张VIP卡,");
cout<<ismvp;
out("张MVP卡,");
cout<<xingyv;
out("信誉积分.");
cout<<endl;
out("现在,你可以有以下选择:");
cout<<endl;
out("1:人机大战");
cout<<endl;
out("2:购买道具");
cout<<endl;
out("3.游戏简介");
cout<<endl;
out("4.作者简介");
cout<<endl;
out("5:外挂");
cout<<endl;
out("6:调整设置");
cout<<endl;
out("7:玩玩小游戏");
cout<<endl;
out("8:新年快乐!");
int in;
cout<<endl;
cin>>in;
switch(in)
{
case 1:
fight();
screan();
system("cls");
break;
case 2:
store();
system("cls");
break;
case 3:
jianjei();
system("cls");
break;
case 4:
zuozhe();
system("cls");
break;
case 5:
waigua();
system("cls");
break;
case 6:
color();
system("cls");
case 7:
panduan();
system("cls");
break;
case 8:
newyear();
system("cls");
break;
default:
out("输错了,请重试。");
Sleep(1000);
}
}
}
#include<bits/stdc++.h>
#include<windows.h>
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
#include<conio.h>
#include<queue>
#include<ctype.h>
#include <iostream>
#include <fstream>
#include <algorithm>
#include <map>
#include <conio.h>
using namespace std;
int player[100000001],sf[100000001],buy,computer,score,cishu,win,lose,tili=10,co,a,b,c,d,meichao=1,abc=0;
int isvip=0,ismvp=0,xingyv=100;
void out();
void judge();
void timu(int);
void zhiliwenda();
void screen();
void screan();
void computer_lose();
void player_lose();
void tin();
void tili_0();
void fight();
void store();
void color();
void waigua();
void meiyuan();
void jianjei();
void chengfa();
void panduan();
void panduan2();
void zuozhe();
void newyear();
void loven();
void sl();
void SetColor(const int foreground, const int background);
int main2();
int main()
{
srand((int)time(0));
system("color 9F");
cout<<"欢迎来到石头剪刀布大战2.8.4新年版本!";
ofstream fout("C:\\Program Files\\石头剪刀布.txt");
Sleep(2000);
cout<<endl;
cout<<"本版本版权归于 学神 ,由 执剑人26 自行修改。"<<endl;
Sleep(2000);
cout<<"新年快乐!";
Sleep(1000);
cout<<endl;
screen();
return 0;
}
void out(string s)
{
int i;
for(i=0;i<=s.length();i++)
{
cout<<s[i];
Sleep(20);
}
}
void screen()
{
while(1)
{
system("cls");
if(xingyv<=0)
{
out("信誉为0,休息一会,马上回来!");
Sleep(2000);
cout<<endl;
int i,yushu;
for(i=1;i<=rand()%20;i++)
{
yushu=i%8;
switch(yushu)
{
case 0:
{
system("color 0F");
out("吃鸡三级头套装,限购10个哟!");
Sleep(2000);
system("cls");
break;
}
case 1:
{
system("color 3F");
out("我的世界头套100个,现在大促销,快来买哟!");
Sleep(2000);
system("cls");
break;
}
case 2:
{
system("color AF");
out("装逼专用机器,还送10年保修哟!");
Sleep(2000);
system("cls");
break;
}
case 3:
{
system("color BF");
out("吃鸡专用98k,800里外一枪爆头!");
Sleep(2000);
system("cls");
break;
}
case 4:
{
system("color AB");
out("王者10000000份外挂大放送,手快有手慢无!");
Sleep(2000);
system("cls");
break;
}
case 5:
{
system("color 0F");
out("联* x220i笔记本电脑出售,抢购只在1秒间!");
Sleep(2000);
system("cls");
break;
}
case 6:
{
system("color 1F");
out("6666666,6666666,6666666,6666666");
Sleep(2000);
system("cls");
xingyv+=100;
break;
}
}
}
zhiliwenda();
}
system("cls");
if(score<0)
{
chengfa();
system("cls");
break;
}
out("你现在有");
cout<<score;
out("张毛爷爷,");
cout<<meichao;
out("美元,");
cout<<tili;
out("点体力值,");
cout<<win;
out("次胜利,");
cout<<lose;
out("次失败,");
cout<<isvip;
out("张VIP卡,");
cout<<ismvp;
out("张MVP卡,");
cout<<xingyv;
out("信誉积分.");
cout<<endl;
out("现在,你可以有以下选择:");
cout<<endl;
out("1:人机大战");
cout<<endl;
out("2:购买道具");
cout<<endl;
out("3.游戏简介");
cout<<endl;
out("4.作者简介");
cout<<endl;
out("5:外挂");
cout<<endl;
out("6:调整设置");
cout<<endl;
out("7:玩玩小游戏(要解锁才能玩哦^o^)");
cout<<endl;
out("8:新年快乐!");
int in;
cout<<endl;
cin>>in;
switch(in)
{
case 1:
system("cls");
fight();
screan();
break;
case 2:
store();
system("cls");
break;
case 3:
jianjei();
system("cls");
break;
case 4:
zuozhe();
system("cls");
break;
case 5:
waigua();
system("cls");
break;
case 6:
color();
system("cls");
case 7:
system("cls");
panduan();
system("cls");
break;
case 8:
newyear();
system("cls");
break;
default:
out("输错了,请重试。");
Sleep(1000);
}
}
}
void panduan()
{
if(abc==1)
{
cout<<"1:智力问答"<<endl;
cout<<"2:恋爱指数测试器"<<endl;
cout<<"3:小球球"<<endl;
cout<<"4:坑人的无限"<<endl;
cout<<"5:蛋蛋小游戏"<<endl;
cout<<"6:打怪小游戏"<<endl;
cout<<"还有更多小游戏即将出品……"<<endl;
int w;
cin>>w;
switch(w){
case 1:
system("cls");
zhiliwenda();
system("cls");
break;
case 2:
system("cls");
loven();
break;
case 3:
system("cls");
sl();
break;
case 4:
system("cls");
break;
}
}else if(abc==0){
out("对不起,权限不够!");
Sleep(1000);
}
}
void sl(){
main2();
}
//------------------------------------------------------------------------------------------
int a;
class Screen
{
private:
int n;
public:
Screen()
{
n=5;
}
void move1()//注意只是循环输出各个数字,不能对循环输出再进行循环(如果对循环输出0123456789再进行循环,则move1就变成一个无限循环的函数,则下面的screen循环就进行不下去了)
{
for(int i=0;i<10;++i)
{
cout<<char(1)<<" ";
}
}
void move2()
{
char i;
for(i='a';i<='z';++i)
{
cout<<char(1)<<" ";
}
}
void screen()
{
int t;
while(!kbhit())
{
t=time(0)%(2*n);//如果是放在循环外面的话,time(0)的值就一直不变,放在循环里面,一秒钟进行一次判断,一秒钟进行一次循环
if(t<n)
move1();
else
move2();
}
}
};
int main(){
cout<<"欢迎来到“无限 ”游戏"<<char(1)<<endl;
cout<<"下面会输出无限个笑脸"<<char(1)<<endl;
cout<<"按'enter'取消"<<endl;
Sleep(4000);
Screen s;
s.screen();
cout<<endl<<"哈哈!!控制不住了吧!"<<char(1)<<endl;
cout<<"接下来会更让你丧心病狂的!"<<char(1)<<endl;
cout<<"但是坚持过后必有彩蛋!!!!!!加油!!";
cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl;
Sleep(10000);
for(int as=0;as<=50;as++){
for(int i=0;i<=100;i++){
for(int j=0;j<=10;j++){
cout<<char(2)<<" ";
}
cout<<endl;
}
for(int i=0;i<=100;i++){
for(int j=0;j<=10;j++){
cout<<char(1)<<" ";
}
cout<<endl;
}
}
cout<<"你居然坚持下来了!"<<char(1)<<" "<<char(2)<<endl<<"不可思议呀!"<<endl;
for(int i=0;i<=10;i++){
cout<<"-----------------------------------------------"<<endl;
}
cout<<"敬请期待!等待无限游戏(二)!";
Sleep(2000);
return 0;
}
----------------------------------------------------------------------------------------------
int x=0,y=0;
/* Colors defined for SetColor(int) */
enum
{
BLACK = 0,
DARK_BLUE = 1,
DARK_GREEN = 2,
TEAL = 3,
DARK_RED = 4,
DARK_PURPLE = 5,
GOLD = 6,
GREY = 7,
DARK_WHITE = 8,
BLUE = 9,
GREEN = 10,
CYAN = 11,
RED = 12,
PURPLE = 13,
YELLOW = 14,
WHITE = 15,
};
void SetColor(const int foreground, const int background)
{
int Color = foreground + (background * 16);
HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleTextAttribute(hConsole, Color);
return;
}
int cc;
int main2()
{
system("title Move 1.3");
SetColor(BLUE,WHITE);
int cc=getch();
switch(cc)
{
case 'a':
if(x>0)x--;
break;
case 'd':
if(x<76)x++;
break;
case 'c':
system("cls");
return 0;
break;
case 'w':
if(y>0)y--;
break;
case 's':
if(y<19)y++;
break;
case 27:
if(MessageBox(FindWindow("ConsoleWindowClass",NULL),"Exit?","Question",MB_YESNO)==6)
return 0;
}
system("cls");
for (int i=0;i<y;i++)cout<<'\n';
for (int i=0;i<x;i++)cout<<' ';
cout<<"●";
for (int i=y;i<20;i++)cout<<'\n';
SetColor(GOLD,WHITE);
cout<<"Esc -> 退出 d ->右 a-> 左 w -> 上 s -> 下 c -> 关闭";
SYSTEMTIME sysTime;
ZeroMemory(&sysTime, sizeof(sysTime));
GetLocalTime(&sysTime);
printf("\nYear:%d Month:%d Day:%d(%d) %d:%d:",sysTime.wYear,sysTime.wMonth,sysTime.wDay,sysTime.wDayOfWeek,sysTime.wHour,sysTime.wMinute);
if(sysTime.wSecond<10)printf("0");
printf("%d",sysTime.wSecond);
main2();
return 0;
}
void loven(){
int n,m,a,b,c,d,e,f,g,h,i,j,k,l,sum;
out("欢迎来到恋爱指数测试器*>-<*");
cout<<endl;
for(int i=1;i<=1000000000;i++)
l=i;
cout<<"独家的哦*^0^*"<<endl;
for(int i=1;i<=1000000000;i++)
l=i;
cout<<"以下异性均为合适年龄"<<endl;
for(int i=1;i<=1000000000;i++)
l=i;
cout<<"下列问题如果是则输入2,如果不是则输入1,一点也没感觉输入0"<<endl;
for(int i=1;i<=1000000000;i++)
l=i;
cout<<"加油,面对你自己!*-o-*"<<endl;
for(int i=1;i<=1000000000;i++)
l=i;
cout<<"question one:"<<"你是否面对异性时有莫名心跳?"<<endl;
cin>>n;
cout<<endl;
cout<<"question two:"<<"你是否有看到异性被撩时很愤怒?"<<endl;
cin>>m;
cout<<endl;
cout<<"question three:"<<"你是否惧怕见到一位异性的家长"<<endl;
cin>>a;
cout<<endl;
cout<<"question four:"<<"你是否经常刷一位异性的QQ或其他软件"<<endl;
cin>>b;
cout<<endl;
cout<<"question five:"<<"想不想真心和Ta用情头?"<<endl;
cin>>c;
cout<<endl;
cout<<"question six:"<<"和Ta邂逅过吗?"<<endl;
cin>>d;
cout<<endl;
cout<<"question seven:"<<"吃过同一个饭碗里的东西吗?"<<endl;
cin>>e;
cout<<endl;
cout<<"question eight:"<<"有过一个人在梦里与Ta相遇吗?"<<endl;
cin>>f;
cout<<endl;
cout<<"question nine:"<<"有为了等Ta一个人站在风雨中吗?"<<endl;
cin>>g;
cout<<endl;
cout<<"question ten:"<<"想kissTa不,想摸Ta的头发吗?"<<endl;
cin>>h;
cout<<endl;
sum=n+m+a+b+c+d+e+f+g+h;
cout<<"正在测评中,请稍后..."<<endl;
for(int i=1;i<=1000000000;i++)
l=i;
if(sum>=16&&sum<=20)
cout<<"你的恋爱指数为:A。你是一个深深爱着Ta的人,你往往会走到最后^-^。"<<endl;
if(sum<=15&&sum>=12)
cout<<"你的恋爱指数为:B。你是一个矛盾却又不失爱意的人,你的爱往往一波三折!-!。"<<endl;
if(sum<=11&&sum>=7)
cout<<"你的恋爱指数为:C。你是一个有点点情丝的人,你想表,却又惧怕现实,你仍须努力o-o。"<<endl;
if(sum<=6&&sum>=0)
cout<<"你的恋爱指数为:D。你是一个无暇无垢,不食人间烟火的人,想一路踏歌,证道路上需佳人陪伴+-+。"<<endl;
if(sum>20||sum<0)
cout<<"你出格了哟ooo.ooo"<<endl;
cout<<"人生在世,恍如昨世,孤独的身影终难走远,你的那个Ta就在不远方,就如漫天繁星,总有一颗属于你!"<<endl;\
cout<<"快抓紧你身边的那个Ta^-^oooooo"<<endl;
cout<<endl;
cout<<"作品创造者:yang sky one"<<endl;
cout<<"恋爱指数测试器已关闭,需重启………………"<<endl;
int nnn;
cout<<"请按任意键继续:";
cin>>nnn;
system("cls");
}
void newyear(){
char answer[10];
cout<<"新年快乐!"<<endl;
Sleep(1000);
float y, x, z, f;
for (y = 1.5f; y > -1.5f; y -= 0.1f)
{
for (x = -1.5f; x < 1.5f; x += 0.05f)
{
z = x * x + y * y - 1;
f = z * z*z - x * x*y*y*y;
putchar(f <= 0.0f ? "*********"[(int)(f*-8.0f)] : ' ');
}
putchar('\n');
}
long time;
for (int i = 0;i<1;i++)
{
system("color a");
for (time = 0; time<99999999; time++);
system("color b");
for (time = 0; time<99999999; time++);
system("color c");
for (time = 0; time<99999999; time++);
system("color d");
for (time = 0; time<99999999; time++);
system("color e");
for (time = 0; time<99999999; time++);
system("color f");
for (time = 0; time<99999999; time++);
system("color 0");
for (time = 0; time<99999999; time++);
system("color 1");
for (time = 0; time<99999999; time++);
system("color 2");
for (time = 0; time<99999999; time++);
system("color 3");
for (time = 0; time<99999999; time++);
system("color 4");
for (time = 0; time<99999999; time++);
system("color 5");
for (time = 0; time<99999999; time++);
system("color 6");
for (time = 0; time<99999999; time++);
system("color 7");
for (time = 0; time<99999999; time++);
system("color 8");
for (time = 0; time<99999999; time++);
system("color 9");
system("color 9F");
}
}
void jianjei()
{
int o;
printf("本游戏版权归属为 学神 , 执剑人26 进行修正,请勿盗版。本版本预计10月12日更新,如有延迟请找 学神 问罪,执剑人26免责。2.8.3版本跟新了外挂和信誉积分模式,后面可能完善,整体功能提高。本版本于2020年1月20日更新到2.8.3版");
cout<<endl;
printf("本版本由 执剑人26 修复了 学神 原版的多出BUG,如外挂中有调颜色、战无不胜卡会把钱扣到只剩1元、商店中第11号产品买不起等。并新增了《玩玩小游戏》。给用户更良好的体验,比如商店的显示更快。");
cout<<endl;
printf("学神:请大家散布通缉令通缉 李明浩、江月路 两人谢谢!");
cout<<endl;
printf("执剑人26:我们大家要和平相处,干嘛要谁通缉谁的呢?");
cout<<endl;
printf("在广袤的空间和无限的时间中,能与你共享同一颗行星和同一段时光,是我的荣幸。——卡尔·萨根(天体物理学家)");
cout<<endl;
printf(" 快新年了,最后祝大家新年快乐!");
cout<<endl;
printf("点赞打1否则打2");
scanf("%d",&o);
score+=10;
}
void zuozhe(){
int o;
cout<<"原作者:学神"<<endl;
cout<<"介绍:不详。(如有侵权,请联系 执剑人26 )"<<endl;
cout<<""<<endl;
cout<<"修改者:执剑人26"<<endl;
cout<<"介绍:生于2007年成都市,男。喜欢编程、影视、读书、折纸、手工……喜欢漫威影业,爱吃披萨、炒鱿鱼、热狗、西餐、饺子(尤其 贺水饺)。性格活泼开朗,关键时刻也稳重成熟。"<<endl;
cout<<"是成都市青羊区智慧营的学员"<<endl;
cout<<"认为朋友是世界上最重要的事物。"<<endl;
cout<<"联系方式:nsSB54088@outlook.com"<<endl;
cout<<"特别感谢:唐浚涵,朱持正,王天逸,刘锦源 以及 草堂小学2014级4班全体同学"<<endl;
cout<<""<<endl;
cout<<"点个赞呗!点赞打1,否则打2"<<endl;
scanf("%d",&o);
if(o==1){
score+=10;
}
else{
score-=10;
}
}
void fight()
{
if(xingyv>=20)
{
cishu++;
tili--;
xingyv-=(rand()%10);
out("你先出。");
cout<<endl;
out("1:石头");
cout<<endl;
out("2:剪刀");
cout<<endl;
out("3:布");
cout<<endl;
out("你出的是:");
cin>>player[cishu];
if(player[cishu]>=4 || player[cishu]<=0)
{
out("无效输入。");
return;
}
computer=(rand()%3)+1;
switch(computer)
{
case 1:
out("电脑出的是石头。");
break;
case 2:
out("电脑出的是剪刀。");
break;
case 3:
out("电脑出的是布。");
break;
}
judge();
}
else
{
printf("信誉积分不足");
xingyv+=5;
}
}
void computer_lose()
{
out("玩家胜利!");
cout<<endl;
sf[cishu]=1;
score+=((rand()%5)+6);
win++;
}
void player_lose()
{
out("玩家失败!");
cout<<endl;
sf[cishu]=-1;
lose++;
}
void tin()
{
out("平局!");
cout<<endl;
}
void store()
{
system("cls");
cout<<"欢迎来到《石头剪刀布》士多店。您有";
cout<<score;
cout<<"张毛爷爷。";
cout<<isvip;
cout<<"张VIP卡";
cout<<ismvp;
cout<<"张MVP卡";
cout<<endl;
cout<<"请问您要买什么?";
cout<<endl;
cout<<"1:失败记录修改器。可以减少一次失败记录。¥5";
cout<<endl;
cout<<"2:胜利记录修改器。可以增加一次胜利记录。¥8";
cout<<endl;
cout<<"3:冰阔落。可以增加5点体力值。¥5";
cout<<endl;
cout<<"4:兴奋剂。可以增加10点体力值。¥10";
cout<<endl;
cout<<"5:一次性刷钱机。可以增加随机价格的毛爷爷。¥10";
cout<<endl;
cout<<"6:商场VIP会员卡。能给商品降低80%价格。¥50";
cout<<endl;
cout<<"7:战无不胜卡(五次,vip和mvp不降价)。¥25";
cout<<endl;
cout<<"8:商场MVP权限。可降价50%。在VIP的基础上再加多100块。";
cout<<endl;
cout<<"9:退出。";
cout<<endl;
cout<<"10:100信誉积分(只有VIP和MVP才能买) ¥300";
cout<<endl;
cout<<"11:解锁全游戏。胜利10次即可购买。";
cout<<endl;
cout<<"12:管理员权限。战胜500次即可获得。";
cin>>buy;
if(isvip>=1&&ismvp<=0)
{
switch(buy)
{
case 1:
score-=4;
lose--;
break;
case 2:
score-=6;
win++;
break;
case 3:
score-=4;
tili+=5;
break;
case 4:
score-=8;
tili+=10;
break;
case 5:
score-=8;
score+=(rand()%100);
break;
case 6:
isvip=1;
out("VIP权限申请成功。");
Sleep(2000);
score-=40;
break;
case 7:
win+=5;
score-=25;
break;
case 8:
ismvp=1;
out("VIP成功升级为MVP。");
Sleep(2000);
isvip-=1;
score-=120;
break;
case 9:
score+=1;
break;
case 10:
score-=300;
xingyv+=100;
break;
case 11:
panduan2();
break;
if(score<=0) out("操你妈的,居然敢不带够钱买东西,给老子滚出去!"),Sleep(2000),win=0,score=0,lose=1000000;
}
}
if(ismvp>=1)
{
switch(buy)
{
case 1:
score-=3;
lose--;
break;
case 2:
score-=4;
win++;
break;
case 3:
score-=3;
tili+=5;
break;
case 4:
score-=5;
tili+=10;
break;
case 5:
score-=5;
score+=(rand()%100);
break;
case 6:
isvip=1;
out("VIP权限申请成功。");
Sleep(2000);
score-=25;
break;
case 7:
win+=5;
score-=25;
break;
case 8:
ismvp=1;
out("VIP成功升级为MVP。");
Sleep(2000);
isvip-=1;
score-=75;
break;
case 9:
score+=1;
break;
case 10:
score-=300;
xingyv+=100;
case 11:
panduan2();
break;
//ofstream fout("")
if(score<=0) out("操你妈的,居然敢不带够钱买东西,给老子滚出去!"),Sleep(2000),win=0,score=0,lose=1000000;
}
}
if(isvip<=0&&ismvp<=0)
{
switch(buy)
{
case 1:
score-=5;
lose--;
break;
case 2:
score-=8;
win++;
break;
case 3:
score-=5;
tili+=5;
break;
case 4:
score-=10;
tili+=10;
break;
case 5:
score-=10;
score+=(rand()%100);
break;
case 6:
isvip=1;
out("VIP权限申请成功。");
Sleep(2000);
score-=50;
break;
case 7:
win+=5;
score-=25;
break;
case 8:
out("对不起,权限不够");
break;
case 10:
out("对不起,权限不够");
break;
case 11:
panduan2();
break;
//ofstream fout("")
if(score<=0&&abc==0&&win<10)
out("操你妈的,居然敢不带够钱买东西,给老子滚出去!"),Sleep(2000),win=0,score=0,lose=1000000;
}
}
}
/*一个火柴人游戏,亲自验证,可运行*/
/*在编译时添加如下命令:-std=c++11,否则会编译错误*/
#include <cstdio>
#include <cstdlib>
#include <Windows.h>
#include <thread>
#include <conio.h>
using namespace std;
const unsigned char CTRL_KEY = 0XE0;
const unsigned char LEFT = 0X4B;
const unsigned char RIGHT = 0X4D;
const unsigned char DOWN = 0X50;
const unsigned char UP = 0X48;
int men2[2] = {0,0};
int women2[2]={10,10};
int Game();
void gotoxy(int x,int y) //光标移动到(x,y)位置
{
HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE);
COORD pos;
pos.X = x;
pos.Y = y;
SetConsoleCursorPosition(handle,pos);
}
int TorF()
{
if ( men2[0] == women2[0] && men2[1] == women2[1] ) return 1;
else return 0;
}
int clean(int mm, int nn)
{
gotoxy ( mm, nn );
printf ( " " );
gotoxy ( mm,nn+1);
printf ( " " );
gotoxy ( mm,nn+2);
printf (" ");
}
int men(int x, int y)
{
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_BLUE|FOREGROUND_GREEN);
gotoxy( x,y );
printf(" O");
gotoxy( x,y+1 );
printf("<H>");
gotoxy( x,y+2 );
printf("I I");
}
int women(int i,int j)
{
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED);
gotoxy( i+1,j );
printf(" O");
gotoxy( i+1,j+1 );
printf("<H>");
gotoxy( i,j+2 );
printf("/I I\\");
}
int m=10, n=10;
int womenmove()
{
int turn;
int YNbreak=0;
while( YNbreak==0 )
{
YNbreak = TorF();
turn=rand()%3;
clean(m,n);
if ( turn == 0 ) m++;
if ( turn == 1 ) m--;
if ( turn == 2 ) n++;
if ( turn == 3 ) n--;
if ( m<0 ) m=0;
if ( m>=75 ) m=75;
if ( n<0 ) n=0;
if ( n>=22 ) n=22;
women( m,n );
women2[0]=m;
women2[1]=n;
Sleep(100);
}
system ( "cls" );
gotoxy ( 28,10 );
printf ( "You died!!!\n" );
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_RED|FOREGROUND_BLUE);
system ( "pause" );
return 0;
}
int x=0;int y=0;
int menmove()
{
system("cls");
while (1)
{
switch(getch())
{
case UP:y--;break;
case DOWN:y++;break;
case LEFT:x--;break;
case RIGHT:x++;break;
}
system("cls");
if ( x<0 ) x=0;
if ( x>77 ) x=77;
if ( y<0 ) y=0;
if ( y>22 ) y=22;
men(x,y);
men2[0]=x;
men2[1]=y;
}
}
int Game()
{
women(10,10);
men(0,0);
int t=0;
thread qq(womenmove);
menmove();
qq.join();
return 0;
}
int main()
{
printf ( "游戏开始后,随机按下一个键,唤醒你的蓝色小人.如果你被红色的老女人碰到了,那么你就死了\n" );
printf ( "方向键操控小人\n" );
system ( "pause" );
system ( "cls" );
Game();
return 0;
}
/*留下您的赞再拿走,谢谢!*/