Вы находитесь на странице: 1из 3

#include<iostream.

h>
using namespace std;
main()
{
int star,ans,go;
star=0;
char option;
cout<<"#########################################################################
######"<<endl
<<"#
Mind Speed Game
#"<<endl
<<"#########################################################################
######"<<endl<<endl;
cout<<"Options : "<<endl
<<endl
<<"A.Start Game B.Instruction
C.Exit"<<endl
<<endl
<<endl;
cout<<"Input Options : ";
cin>>option;
cout<<endl<<endl;
switch(option)
{
case 'A':
case 'a':
game:
{
cout<<"Find the letter s in the set of number 5"<<endl<<endl<<endl
<<"555555555555555555555555555555555555555555555555555555555555555"<<endl
<<"55555555555555555555555555555S555555555555555555555555555555555"<<end
l
<<"555555555555555555555555555555555555555555555555555555555555555"<<end
l
<<"555555555555555555555555555555555555555555555555555555555555555"<<end
l<<endl<<endl;
cout<<"It is in stanza : ";
cin>>ans;
cout<<endl<<endl;
if(ans==2)
{
star+=1;
cout<<"Correct! You got "<<star<<" star(s) ";
}
else
{
cout<<"Sorry,you didn't find it.";
}
cout<<endl<<endl<<endl;
cout<<"Find the number 1 in the set of letter l"<<endl<<endl<<endl
<<"lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll"<<endl
<<"lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll"<<end
l
<<"lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll"<<end
l
<<"1llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll"<<end
l<<endl<<endl;
cout<<" It is in stanza : ";
cin>>ans;
cout<<endl<<endl<<endl;

if(ans==4)
{
star+=1;
cout<<"You got it right! You achieve "<<star<<" star(s)";
}
else
{
cout<<"Sorry,you didn't find it.Better luck next time.";
}
cout<<endl<<endl<<endl;
cout<<"Find the letter m in the set of letter n"<<endl<<endl<<endl
<<"nnnnnnnnnnnnnnnnnnnnmnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn"<<endl
<<"nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn"<<en
dl
<<"nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn"<<en
dl
<<"nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn"<<en
dl<<endl<<endl;
cout<<"It is in stanza :";
cin>>ans;
cout<<endl<<endl<<endl;
if(ans==1)
{
star+=1;
cout<<"Your right! Letter m is in stanza 1. You got "<<star<<" star(s)";
}
else
{
cout<<"Sorry,you didn't track it.";
}
cout<<endl<<endl<<endl;
cout<<"Find the the symbol : in the set of symbol ;"<<endl<<endl<<endl
<<";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"<<end
l
<<";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"<<end
l
<<";;;;;;;;;;;;;;;;;;;;;:;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"<<end
l
<<";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"<<end
l<<endl<<endl;
cout<<"It is in stanza : ";
cin>>ans;
cout<<endl<<endl;
if(ans==3)
{
star+=1;
cout<<"Your right! You achieve "<<star<<" star(s)";
}
else
{
cout<<"Sorry,wrong guess!";
}
cout<<endl<<endl<<endl;
cout<<"Find the letter d in the set of letter b"<<endl<<endl<<endl
<<"bbbbbbbbbbbbbbbbbdbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"<<endl
<<"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"<<
endl
<<"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"<<
endl
<<"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"<<

endl<<endl<<endl;
cout<<"It is in stanza : ";
cin>>ans;
if(ans==1)
{
cout<<"Excellent You Got It Right! "<<star<<" star(s) ";
}
else
{
cout<<"Sorry,you're wrong.";
}
break;
}
case 'B':
case 'b':
{
cout<<"Instruction :"<<endl<<endl
<<"You need to find the letter or the number being ask."<<endl
<<"Answer it by inputing the stanza where the number or letter is locate
d."<<endl;
cout<<"Want to play now (0-yes,1-no) : ";
cin>>go;
if(go==0)
{
goto game;
cout<<endl<<endl<<endl;
}
else if(go==1)
{
exit:
cout<<endl<<endl<<endl;
cout<<"Game exited!";
}
else
{
cout<<"You input wrong number that is out of the choices!";
goto exit;
}
break;
}
case 'C':
case 'c':
{
goto exit;
break;
}
default:
cout<<"Out of the options!";
break;
}
return 0;
}

Вам также может понравиться